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:
Thomas D 2025-01-11 18:49:13 +01:00 committed by GitHub
parent 5ffe47872d
commit da9aede0c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"],
}