Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
20 changes: 11 additions & 9 deletions custom_components/tekmar_482/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."""
Expand Down Expand Up @@ -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 = {}

Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Tekmar Gateway 482",
"content_in_root": false,
"homeassistant": "2024.2.0",
"homeassistant": "2025.12.0",
"render_readme": false
}
Loading