Make initial group config flow step a menu (#68565)
This commit is contained in:
parent
d3809e4a09
commit
a50bac5cc2
11 changed files with 164 additions and 91 deletions
|
@ -11,6 +11,7 @@ from homeassistant.helpers import selector
|
|||
from homeassistant.helpers.helper_config_entry_flow import (
|
||||
HelperConfigFlowHandler,
|
||||
HelperFlowError,
|
||||
HelperFlowMenuStep,
|
||||
HelperFlowStep,
|
||||
)
|
||||
|
||||
|
@ -43,11 +44,11 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
}
|
||||
).extend(OPTIONS_SCHEMA.schema)
|
||||
|
||||
CONFIG_FLOW = {
|
||||
CONFIG_FLOW: dict[str, HelperFlowStep | HelperFlowMenuStep] = {
|
||||
"user": HelperFlowStep(CONFIG_SCHEMA, validate_user_input=_validate_mode)
|
||||
}
|
||||
|
||||
OPTIONS_FLOW = {
|
||||
OPTIONS_FLOW: dict[str, HelperFlowStep | HelperFlowMenuStep] = {
|
||||
"init": HelperFlowStep(OPTIONS_SCHEMA, validate_user_input=_validate_mode)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue