diff --git a/README.md b/README.md index 9724e4f..048b274 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ After rebooting Home Assistant, this integration can be configured through the i ### Required Versions -- Home Assistant 2024.2.0 or newer +- Home Assistant 2025.12.0 or newer ## Compatible Equipment diff --git a/custom_components/tekmar_482/config_flow.py b/custom_components/tekmar_482/config_flow.py index 3388003..912e31a 100644 --- a/custom_components/tekmar_482/config_flow.py +++ b/custom_components/tekmar_482/config_flow.py @@ -2,10 +2,12 @@ from __future__ import annotations +from typing import Any + import homeassistant.helpers.config_validation as cv import voluptuous as vol from homeassistant import config_entries -from homeassistant.config_entries import ConfigEntry +from homeassistant.config_entries import ConfigEntry, OptionsFlow from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT from homeassistant.core import HomeAssistant, callback from homeassistant.data_entry_flow import FlowResult @@ -37,9 +39,11 @@ class TekmarGatewayConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): @staticmethod @callback - def async_get_options_flow(config_entry: ConfigEntry): + def async_get_options_flow( + config_entry: ConfigEntry, + ) -> TekmarGatewayOptionsFlowHandler: """Create the options flow for Tekmar Gateway 482.""" - return TekmarGatewayOptionsFlowHandler(config_entry) + return TekmarGatewayOptionsFlowHandler() async def async_step_user(self, user_input=None) -> FlowResult: """Handle the initial step.""" @@ -84,14 +88,12 @@ async def async_step_user(self, user_input=None) -> FlowResult: ) -class TekmarGatewayOptionsFlowHandler(config_entries.OptionsFlow): +class TekmarGatewayOptionsFlowHandler(OptionsFlow): """Handle an options flow for Tekmar Gateway 482.""" - def __init__(self, config_entry: ConfigEntry): - """Initialize options flow.""" - self.config_entry = config_entry - - async def async_step_init(self, user_input=None) -> FlowResult: + async def async_step_init( + self, user_input: dict[str, Any] | None = None + ) -> FlowResult: """Handle the initial options flow step.""" errors = {} diff --git a/hacs.json b/hacs.json index da5173c..4a46f18 100644 --- a/hacs.json +++ b/hacs.json @@ -1,6 +1,6 @@ { "name": "Tekmar Gateway 482", "content_in_root": false, - "homeassistant": "2024.2.0", + "homeassistant": "2025.12.0", "render_readme": false }