This commit is contained in:
G Johansson
2026-07-06 12:29:49 +00:00
parent 73761f37b1
commit 767b2a705c
@@ -1,8 +1,5 @@
"""Config flow for Min/Max integration."""
from collections.abc import Mapping
from typing import Any, cast
import voluptuous as vol
from homeassistant.components.input_number import DOMAIN as INPUT_NUMBER_DOMAIN
@@ -54,15 +51,13 @@ OPTIONS_SCHEMA = vol.Schema(
CONFIG_SCHEMA = vol.Schema({})
async def migrate_to_groups(
handler: SchemaCommonFlowHandler, user_input: dict[str, Any]
) -> dict[str, Any]:
async def migrate_to_groups(handler: SchemaCommonFlowHandler) -> vol.Schema:
"""Abort flow as migrate to groups."""
raise AbortFlow("migrated_to_groups")
CONFIG_FLOW = {
"user": SchemaFlowFormStep(CONFIG_SCHEMA, validate_user_input=migrate_to_groups),
"user": SchemaFlowFormStep(migrate_to_groups),
}
OPTIONS_FLOW = {
@@ -76,7 +71,3 @@ class ConfigFlowHandler(SchemaConfigFlowHandler, domain=DOMAIN):
config_flow = CONFIG_FLOW
options_flow = OPTIONS_FLOW
options_flow_reloads = True
def async_config_entry_title(self, options: Mapping[str, Any]) -> str:
"""Return config entry title."""
return cast(str, options["name"]) if "name" in options else ""