diff --git a/custom_components/trakt/config_flow.py b/custom_components/trakt/config_flow.py index 48825b5..0df2b1d 100644 --- a/custom_components/trakt/config_flow.py +++ b/custom_components/trakt/config_flow.py @@ -11,6 +11,7 @@ CONF_CLIENT_SECRET, CONF_EXCLUDE, CONF_NAME, + __version__ as HAVERSION, ) from homeassistant.core import callback from homeassistant.helpers import selector @@ -84,8 +85,13 @@ def async_get_options_flow( return TraktOptionsFlowHandler(config_entry) -class TraktOptionsFlowHandler(config_entries.OptionsFlowWithConfigEntry): +class TraktOptionsFlowHandler(config_entries.OptionsFlow): """Handle Trakt options.""" + + def __init__(self, config_entry: config_entries.ConfigEntry) -> None: + """Initialize options flow.""" + if AwesomeVersion(HAVERSION) < "2024.11.99": + self.config_entry = config_entry async def async_step_init(self, user_input: dict[str, Any] | None = None) -> None: """Manage the Trakt options."""