Make initial group config flow step a menu (#68565)

This commit is contained in:
Erik Montnemery 2022-03-23 16:34:44 +01:00 committed by GitHub
parent d3809e4a09
commit a50bac5cc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 164 additions and 91 deletions

View file

@ -18,6 +18,7 @@ from homeassistant.const import (
from homeassistant.helpers import selector
from homeassistant.helpers.helper_config_entry_flow import (
HelperConfigFlowHandler,
HelperFlowMenuStep,
HelperFlowStep,
)
@ -87,9 +88,13 @@ CONFIG_SCHEMA = vol.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):