[sensor] Use register_apply_action for sensor.template.publish (#19507)

This commit is contained in:
J. Nick Koston
2026-09-23 18:26:41 -04:00
committed by GitHub
parent c1d82168d8
commit 2ddc6a0741
4 changed files with 13 additions and 21 deletions
+11
View File
@@ -5,6 +5,17 @@ sensor:
id: source_sensor
lambda: return 42.0;
update_interval: 1s
on_value:
- sensor.template.publish:
id: publish_target
state: 42.0
- sensor.template.publish:
id: publish_target
state: !lambda "return x * 2.0;"
- platform: template
name: "Publish Target"
id: publish_target
# Streaming filters (window_size == send_every) - uses StreamingFilter base class
- platform: copy