mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Fix enigma2 option flow (#119335)
This commit is contained in:
parent
68a9f3a048
commit
ea6729ab5f
@ -67,9 +67,8 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
|
|
||||||
async def get_options_schema(handler: SchemaCommonFlowHandler) -> vol.Schema:
|
async def get_options_schema(handler: SchemaCommonFlowHandler) -> vol.Schema:
|
||||||
"""Get the options schema."""
|
"""Get the options schema."""
|
||||||
hass = handler.parent_handler.hass
|
|
||||||
entry = cast(SchemaOptionsFlowHandler, handler.parent_handler).config_entry
|
entry = cast(SchemaOptionsFlowHandler, handler.parent_handler).config_entry
|
||||||
device: OpenWebIfDevice = hass.data[DOMAIN][entry.entry_id]
|
device: OpenWebIfDevice = entry.runtime_data
|
||||||
bouquets = [b[1] for b in (await device.get_all_bouquets())["bouquets"]]
|
bouquets = [b[1] for b in (await device.get_all_bouquets())["bouquets"]]
|
||||||
|
|
||||||
return vol.Schema(
|
return vol.Schema(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user