diff --git a/custom_components/bluesound_alt/config_flow.py b/custom_components/bluesound_alt/config_flow.py index eb887f3..a93fd93 100644 --- a/custom_components/bluesound_alt/config_flow.py +++ b/custom_components/bluesound_alt/config_flow.py @@ -1,6 +1,17 @@ +import voluptuous as vol from homeassistant.helpers.selector import selector from homeassistant import config_entries -import voluptuous as vol +from homeassistant.core import callback +from homeassistant.helpers.schema_config_entry_flow import ( + SchemaFlowFormStep, + SchemaOptionsFlowHandler, +) + +OPTIONS_SCHEMA = vol.Schema() +OPTIONS_FLOW = { + "init": SchemaFlowFormStep(OPTIONS_SCHEMA), +} + from .const import DOMAIN @@ -8,8 +19,16 @@ class BluesoundConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): """Handle a config flow for Bluesound.""" + @staticmethod + @callback + def async_get_options_flow( + config_entry: config_entries.ConfigEntry, + ) -> SchemaOptionsFlowHandler: + """Get options flow for this handler.""" + return SchemaOptionsFlowHandler(config_entry, OPTIONS_FLOW) + def __init__(self): - """Initialize a new AppleTVConfigFlow.""" + """Initialize a new ConfigFlow.""" self.ip = None self.name = None