mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Make initial group config flow step a menu (#68565)
This commit is contained in:
@@ -10,6 +10,7 @@ from homeassistant.const import CONF_ENTITY_ID
|
||||
from homeassistant.helpers import selector
|
||||
from homeassistant.helpers.helper_config_entry_flow import (
|
||||
HelperConfigFlowHandler,
|
||||
HelperFlowMenuStep,
|
||||
HelperFlowStep,
|
||||
)
|
||||
|
||||
@@ -29,9 +30,13 @@ CONFIG_SCHEMA = vol.Schema(
|
||||
}
|
||||
).extend(OPTIONS_SCHEMA.schema)
|
||||
|
||||
CONFIG_FLOW = {"user": HelperFlowStep(CONFIG_SCHEMA)}
|
||||
CONFIG_FLOW: dict[str, HelperFlowStep | HelperFlowMenuStep] = {
|
||||
"user": HelperFlowStep(CONFIG_SCHEMA)
|
||||
}
|
||||
|
||||
OPTIONS_FLOW = {"init": HelperFlowStep(OPTIONS_SCHEMA)}
|
||||
OPTIONS_FLOW: dict[str, HelperFlowStep | HelperFlowMenuStep] = {
|
||||
"init": HelperFlowStep(OPTIONS_SCHEMA)
|
||||
}
|
||||
|
||||
|
||||
class ConfigFlowHandler(HelperConfigFlowHandler, domain=DOMAIN):
|
||||
|
||||
Reference in New Issue
Block a user