Skip to content

Commit aaf9851

Browse files
authored
Add note about defaults in select inputs (#2712)
1 parent a87d626 commit aaf9851

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/data_entry_flow_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ class ExampleOptionsFlow(config_entries.OptionsFlow):
315315
)
316316
```
317317

318+
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.
319+
318320
#### Displaying read-only information
319321

320322
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`.

0 commit comments

Comments
 (0)