[text] Use register_apply_action for text.set (#19509)

This commit is contained in:
J. Nick Koston
2026-09-23 18:24:25 -04:00
committed by GitHub
parent bd91d3ff23
commit 4efeee245c
3 changed files with 16 additions and 34 deletions
+11
View File
@@ -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 + "!";