mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Updated example (#2545)
Example updates so it better represents how it should be used for novice users and work as expected.
This commit is contained in:
parent
b18eb16ef5
commit
67e445bc06
@ -351,12 +351,12 @@ Setting up three options and set component state to selected option value.
|
||||
- "Option1"
|
||||
- "Option2"
|
||||
- "Option3"
|
||||
initial_option: "OFF"
|
||||
optimistic: true
|
||||
set_action:
|
||||
- logger.log:
|
||||
format: "Chosen option: %s"
|
||||
args: ["x.c_str()"]
|
||||
- lambda: |-
|
||||
id(mode).state = x.c_str();
|
||||
|
||||
|
||||
See Also
|
||||
|
Loading…
Reference in New Issue
Block a user