mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 16:00:23 +00:00
[text] Use register_apply_action for text.set (#19509)
This commit is contained in:
@@ -28,3 +28,14 @@ text_sensor:
|
||||
- platform: text
|
||||
name: "Test Text State"
|
||||
source_id: test_text
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: Set Text
|
||||
on_press:
|
||||
- text.set:
|
||||
id: test_text
|
||||
value: Hello
|
||||
- text.set:
|
||||
id: test_text
|
||||
value: !lambda return id(test_text).state + "!";
|
||||
|
||||
Reference in New Issue
Block a user