renamed domain
This commit is contained in:
1 parent
1c29ffe7a2
commit
27f79acd00
5 files changed
+9
-4
No files matched your search
@@ -0,0 +1,2 @@
|
||||
*/__pycache__/
|
||||
*.pyc
|
||||
@@ -20,5 +20,5 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
if address is None:
|
||||
return False
|
||||
|
||||
_LOGGER.error(f"Device address: {address}")
|
||||
_LOGGER.error("Device address: %s", address)
|
||||
return True
|
||||
+4
-1
@@ -7,7 +7,7 @@ import logging
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components import (
|
||||
from homeassistant.components.bluetooth import (
|
||||
BluetoothServiceInfoBleak,
|
||||
async_discovered_service_info,
|
||||
)
|
||||
@@ -34,6 +34,9 @@ class BluettiConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
await self.async_set_unique_id(discovery_info.address)
|
||||
self._abort_if_unique_id_configured()
|
||||
self._discovery_info = discovery_info
|
||||
self.context["title_placeholders"] = {
|
||||
"name": discovery_info.name
|
||||
}
|
||||
return await self.async_step_user()
|
||||
|
||||
async def async_step_user(self, user_input: dict[str, Any] | None = None) -> FlowResult:
|
||||
@@ -1,3 +1,3 @@
|
||||
"""Constants for the Bluetti BT integration."""
|
||||
|
||||
DOMAIN = "bluetti-bt"
|
||||
DOMAIN = "bluetti_bt"
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"domain": "bluetti-bt",
|
||||
"domain": "bluetti_bt",
|
||||
"name": "Bluetti BT",
|
||||
"codeowners": ["@Patrick762"],
|
||||
"config_flow": true,
|
||||
Reference in new issue
Block a user