Fix enigma2 option flow (#119335)

This commit is contained in:
Jan Bouwhuis 2024-06-10 23:43:30 +02:00 committed by GitHub
parent 68a9f3a048
commit ea6729ab5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,9 +67,8 @@ CONFIG_SCHEMA = vol.Schema(
async def get_options_schema(handler: SchemaCommonFlowHandler) -> vol.Schema:
"""Get the options schema."""
hass = handler.parent_handler.hass
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"]]
return vol.Schema(