mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Attempt to fix flapping august lock test (#34998)
This commit is contained in:
parent
82a478e2fb
commit
af62660b14
@ -71,6 +71,7 @@ async def test_one_lock_operation(hass):
|
||||
assert await hass.services.async_call(
|
||||
LOCK_DOMAIN, SERVICE_UNLOCK, data, blocking=True
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
lock_online_with_doorsense_name = hass.states.get("lock.online_with_doorsense_name")
|
||||
assert lock_online_with_doorsense_name.state == STATE_UNLOCKED
|
||||
@ -84,6 +85,7 @@ async def test_one_lock_operation(hass):
|
||||
assert await hass.services.async_call(
|
||||
LOCK_DOMAIN, SERVICE_LOCK, data, blocking=True
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
lock_online_with_doorsense_name = hass.states.get("lock.online_with_doorsense_name")
|
||||
assert lock_online_with_doorsense_name.state == STATE_LOCKED
|
||||
|
Loading…
x
Reference in New Issue
Block a user