Switch to asyncio.wait for slow update warning implementation (#41184)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-10-05 15:28:15 +02:00
1 parent dde465da48
commit f50976a0b3
9 files changed
+62 -45

No files matched your search

+3
View File
@@ -56,6 +56,7 @@ async def test_light_service_calls(hass):
assert hass.states.get("light.light_switch").state == "on"
await common.async_turn_off(hass, "light.light_switch")
await hass.async_block_till_done()
assert hass.states.get("switch.decorative_lights").state == "off"
assert hass.states.get("light.light_switch").state == "off"
@@ -74,11 +75,13 @@ async def test_switch_service_calls(hass):
assert hass.states.get("light.light_switch").state == "on"
await switch_common.async_turn_off(hass, "switch.decorative_lights")
await hass.async_block_till_done()
assert hass.states.get("switch.decorative_lights").state == "off"
assert hass.states.get("light.light_switch").state == "off"
await switch_common.async_turn_on(hass, "switch.decorative_lights")
await hass.async_block_till_done()
assert hass.states.get("switch.decorative_lights").state == "on"
assert hass.states.get("light.light_switch").state == "on"