Add unittest for multible entities in one line (#5759)
parent
91bebca0b6
commit
2a139d6bc7
|
@ -688,3 +688,14 @@ is_state_attr('device_tracker.phone_2', 'battery', 40)
|
|||
states.sensor.pick_humidity.state ~ „ %“
|
||||
}}
|
||||
""")))
|
||||
|
||||
self.assertListEqual(
|
||||
sorted([
|
||||
'sensor.luftfeuchtigkeit_mean',
|
||||
'input_slider.luftfeuchtigkeit',
|
||||
]),
|
||||
sorted(template.extract_entities(
|
||||
"{% if (states('sensor.luftfeuchtigkeit_mean') | int)"
|
||||
" > (states('input_slider.luftfeuchtigkeit') | int +1.5)"
|
||||
" %}true{% endif %}"
|
||||
)))
|
||||
|
|
Loading…
Reference in New Issue