From da9aede0c93f38af65b3452302848818506dcd36 Mon Sep 17 00:00:00 2001 From: Thomas D <11554546+thomasddn@users.noreply.github.com> Date: Sat, 11 Jan 2025 18:49:13 +0100 Subject: [PATCH] Update data_entry_flow_index.md (#2525) Use Marker for schema dictionary keys (https://github.com/home-assistant/frontend/issues/22419#issuecomment-2425612852) --- docs/data_entry_flow_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/data_entry_flow_index.md b/docs/data_entry_flow_index.md index 554e915a..9d17bb89 100644 --- a/docs/data_entry_flow_index.md +++ b/docs/data_entry_flow_index.md @@ -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"], }