mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-16 05:46:30 +00:00
Update data_entry_flow_index.md (#2525)
Use Marker for schema dictionary keys (https://github.com/home-assistant/frontend/issues/22419#issuecomment-2425612852)
This commit is contained in:
parent
5ffe47872d
commit
da9aede0c9
@ -129,7 +129,7 @@ class ExampleConfigFlow(data_entry_flow.FlowHandler):
|
||||
vol.Required("username"): str,
|
||||
vol.Required("password"): str,
|
||||
# Items can be grouped by collapsible sections
|
||||
"ssl_options": section(
|
||||
vol.Required("ssl_options"): section(
|
||||
vol.Schema(
|
||||
{
|
||||
vol.Required("ssl", default=True): bool,
|
||||
@ -142,7 +142,7 @@ class ExampleConfigFlow(data_entry_flow.FlowHandler):
|
||||
}
|
||||
|
||||
if self.show_advanced_options:
|
||||
data_schema["allow_groups"] = selector({
|
||||
data_schema[vol.Optional("allow_groups")] = selector({
|
||||
"select": {
|
||||
"options": ["all", "light", "switch"],
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user