Skip to content

Commit be364a5

Browse files
authored
Mention sort option for menu step form (home-assistant#2773)
1 parent 19a8060 commit be364a5

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
@@ -590,6 +590,8 @@ class ExampleConfigFlow(data_entry_flow.FlowHandler):
590590
}
591591
```
592592

593+
Passing `sort=True` to async_show_menu will also sort the menu items by their label in the user's language.
594+
593595
## Initializing a config flow from an external source
594596

595597
You might want to initialize a config flow programmatically. For example, if we discover a device on the network that requires user interaction to finish setup. To do so, pass a source parameter and optional user input when initializing a flow:

0 commit comments

Comments
 (0)