From ea6729ab5fd1cb08f7cb92d609f1f92fa889b991 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Mon, 10 Jun 2024 23:43:30 +0200 Subject: [PATCH] Fix enigma2 option flow (#119335) --- homeassistant/components/enigma2/config_flow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/enigma2/config_flow.py b/homeassistant/components/enigma2/config_flow.py index b9ae6ffbebf..0d640d0a478 100644 --- a/homeassistant/components/enigma2/config_flow.py +++ b/homeassistant/components/enigma2/config_flow.py @@ -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(