mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Fix add_suggested_values_to_schema when the schema has sections (#149718)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
This commit is contained in:
@@ -676,9 +676,10 @@ class FlowHandler(Generic[_FlowContextT, _FlowResultT, _HandlerT]):
|
||||
and key in suggested_values
|
||||
):
|
||||
new_section_key = copy.copy(key)
|
||||
schema[new_section_key] = val
|
||||
val.schema = self.add_suggested_values_to_schema(
|
||||
val.schema, suggested_values[key]
|
||||
new_val = copy.copy(val)
|
||||
schema[new_section_key] = new_val
|
||||
new_val.schema = self.add_suggested_values_to_schema(
|
||||
new_val.schema, suggested_values[key]
|
||||
)
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user