mirror of
https://github.com/esphome/esphome.git
synced 2026-09-27 23:10:21 +00:00
[tests] Give the binary_sensor and sensor publish targets distinct ids (#19564)
This commit is contained in:
@@ -38,10 +38,10 @@ binary_sensor:
|
||||
args: ['x.has_value() ? ONOFF(x) : "Unknown"']
|
||||
- binary_sensor.invalidate_state: binary_sensor_some_binary_sensor
|
||||
- binary_sensor.template.publish:
|
||||
id: publish_target
|
||||
id: binary_sensor_publish_target
|
||||
state: true
|
||||
- binary_sensor.template.publish:
|
||||
id: publish_target
|
||||
id: binary_sensor_publish_target
|
||||
state: !lambda "return x.value_or(false);"
|
||||
- if:
|
||||
condition:
|
||||
@@ -56,7 +56,7 @@ binary_sensor:
|
||||
- logger.log: "publish_target is off"
|
||||
|
||||
- platform: template
|
||||
id: publish_target
|
||||
id: binary_sensor_publish_target
|
||||
name: "Publish Target"
|
||||
|
||||
# Test autorepeat with default configuration (no timings)
|
||||
|
||||
@@ -7,15 +7,15 @@ sensor:
|
||||
update_interval: 1s
|
||||
on_value:
|
||||
- sensor.template.publish:
|
||||
id: publish_target
|
||||
id: sensor_publish_target
|
||||
state: 42.0
|
||||
- sensor.template.publish:
|
||||
id: publish_target
|
||||
id: sensor_publish_target
|
||||
state: !lambda "return x * 2.0;"
|
||||
|
||||
- platform: template
|
||||
name: "Publish Target"
|
||||
id: publish_target
|
||||
id: sensor_publish_target
|
||||
|
||||
# Streaming filters (window_size == send_every) - uses StreamingFilter base class
|
||||
- platform: copy
|
||||
|
||||
Reference in New Issue
Block a user