From aaf985168a3b66936dcf7b6f13a4b54c760021d5 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Fri, 27 Jun 2025 18:12:30 +0300 Subject: [PATCH] Add note about defaults in select inputs (#2712) --- docs/data_entry_flow_index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/data_entry_flow_index.md b/docs/data_entry_flow_index.md index 5ab5d00d..58568bf1 100644 --- a/docs/data_entry_flow_index.md +++ b/docs/data_entry_flow_index.md @@ -315,6 +315,8 @@ class ExampleOptionsFlow(config_entries.OptionsFlow): ) ``` +Note: For select type inputs (created from a `vol.In(...)` schema), if no `default` is specified, the first option will be selected by default in the frontend. + #### Displaying read-only information Some integrations have options which are frozen after initial configuration. When displaying an options flow, you can show this information in a read-only way, so that users may remember which options were selected during the initial configuration. For this, define an optional selector as usual, but with the `read_only` flag set to `True`.