Skip to content

Commit

Permalink
Fix template tests
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Nov 24, 2021
1 parent 0258eb3 commit dfbace6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/components/template/test_binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
STATE_OFF,
STATE_ON,
STATE_UNAVAILABLE,
STATE_UNKNOWN,
)
from homeassistant.core import Context, CoreState
from homeassistant.helpers import entity_registry
Expand Down Expand Up @@ -498,10 +499,10 @@ async def test_no_update_template_match_all(hass, caplog):
hass.states.async_set("binary_sensor.test_sensor", "true")
assert len(hass.states.async_all()) == 5

assert hass.states.get("binary_sensor.all_state").state == OFF
assert hass.states.get("binary_sensor.all_icon").state == OFF
assert hass.states.get("binary_sensor.all_entity_picture").state == OFF
assert hass.states.get("binary_sensor.all_attribute").state == OFF
assert hass.states.get("binary_sensor.all_state").state == STATE_UNKNOWN
assert hass.states.get("binary_sensor.all_icon").state == STATE_UNKNOWN
assert hass.states.get("binary_sensor.all_entity_picture").state == STATE_UNKNOWN
assert hass.states.get("binary_sensor.all_attribute").state == STATE_UNKNOWN

hass.bus.async_fire(EVENT_HOMEASSISTANT_START)
await hass.async_block_till_done()
Expand Down

0 comments on commit dfbace6

Please sign in to comment.