Allow next_step to be a string (#82647)
* Allow next_step to be a string * Adjust docstrings * Add test
This commit is contained in:
parent
285aff154d
commit
caa99ea9fb
3 changed files with 25 additions and 13 deletions
|
@ -134,7 +134,7 @@ DATA_SCHEMA_SENSOR = vol.Schema(SENSOR_SETUP)
|
|||
CONFIG_FLOW: dict[str, SchemaFlowFormStep | SchemaFlowMenuStep] = {
|
||||
"user": SchemaFlowFormStep(
|
||||
schema=DATA_SCHEMA_RESOURCE,
|
||||
next_step=lambda _: "sensor",
|
||||
next_step="sensor",
|
||||
validate_user_input=validate_rest_setup,
|
||||
),
|
||||
"sensor": SchemaFlowFormStep(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue