Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren committed Feb 4, 2024
1 parent 5bf0030 commit 15c3e40
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions custom_components/bluesound_alt/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,34 @@
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

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

Expand Down

0 comments on commit 15c3e40

Please sign in to comment.