fix flakey tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user