fix flakey tests

This commit is contained in:
J. Nick Koston
2025-06-06 22:39:29 -05:00
parent 0187820475
commit 0261168b08
2 changed files with 18 additions and 4 deletions

View File

@@ -215,12 +215,12 @@ sensor:
binary_sensor:
- platform: template
name: "Test Binary Sensor 1"
id: test_binary_sensor_1
lambda: return true;
update_interval: 0.1s
- platform: template
name: "Test Binary Sensor 2"
id: test_binary_sensor_2
lambda: return false;
update_interval: 0.1s
switch:
- platform: template
@@ -322,3 +322,10 @@ button:
name: "Test Button"
on_press:
- logger.log: "Button pressed"
# Interval to update binary sensors
interval:
- interval: 100ms
then:
- component.update: test_binary_sensor_1
- component.update: test_binary_sensor_2

View File

@@ -95,12 +95,12 @@ sensor:
binary_sensor:
- platform: template
name: "Test Binary Sensor 1"
id: test_binary_sensor_1
lambda: return true;
update_interval: 0.1s
- platform: template
name: "Test Binary Sensor 2"
id: test_binary_sensor_2
lambda: return false;
update_interval: 0.1s
text_sensor:
- platform: template
@@ -136,3 +136,10 @@ number:
lambda: return 50.0;
set_action:
- logger.log: "Number set"
# Interval to update binary sensors
interval:
- interval: 100ms
then:
- component.update: test_binary_sensor_1
- component.update: test_binary_sensor_2