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:
pedjas 2022-12-16 13:28:00 +01:00 committed by GitHub
parent b18eb16ef5
commit 67e445bc06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -351,12 +351,12 @@ Setting up three options and set component state to selected option value.
- "Option1" - "Option1"
- "Option2" - "Option2"
- "Option3" - "Option3"
initial_option: "OFF"
optimistic: true
set_action: set_action:
- logger.log: - logger.log:
format: "Chosen option: %s" format: "Chosen option: %s"
args: ["x.c_str()"] args: ["x.c_str()"]
- lambda: |-
id(mode).state = x.c_str();
See Also See Also