diff --git a/custom_components/bluesound_alt/config_flow.py b/custom_components/bluesound_alt/config_flow.py index dfb246e..de58f69 100644 --- a/custom_components/bluesound_alt/config_flow.py +++ b/custom_components/bluesound_alt/config_flow.py @@ -7,6 +7,7 @@ import voluptuous as vol from homeassistant import config_entries, exceptions +from homeassistant import data_entry_flow from homeassistant.core import HomeAssistant from homeassistant.const import ( CONF_HOST, @@ -79,7 +80,7 @@ async def validate_input(hass: HomeAssistant, data: dict) -> dict[str, Any]: return {"title": data["host"]} -class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): +class ConfigFlow(data_entry_flow.FlowHandler): """Handle a config flow for Hello World.""" VERSION = 1 diff --git a/custom_components/bluesound_alt/const.py b/custom_components/bluesound_alt/const.py index af1a8e5..a3d3afb 100644 --- a/custom_components/bluesound_alt/const.py +++ b/custom_components/bluesound_alt/const.py @@ -1,5 +1,5 @@ """Constants for the Bluesound HiFi wireless speakers and audio integrations component.""" -DOMAIN = "bluesound" +DOMAIN = "bluesound_alt" SERVICE_CLEAR_TIMER = "clear_sleep_timer" SERVICE_JOIN = "join" SERVICE_SET_TIMER = "set_sleep_timer"