[text_sensor] Use register_apply_action for text_sensor.template.publish (#19539)

This commit is contained in:
J. Nick Koston
2026-09-23 16:55:58 -05:00
committed by GitHub
parent 4e2d1cd7fc
commit 01f9416a79
4 changed files with 13 additions and 24 deletions
+11
View File
@@ -77,3 +77,14 @@ text_sensor:
return {x.substr(0, 10) + "..."};
}
return {x};
- platform: template
name: "Test Publish Action"
id: test_publish_action
on_value:
- text_sensor.template.publish:
id: test_map_single
state: "ON"
- text_sensor.template.publish:
id: test_map_single
state: !lambda 'return x + " again";'