Switch to asyncio.wait for slow update warning implementation (#41184)
This commit is contained in:
1 parent
dde465da48
commit
f50976a0b3
9 files changed
+62
-45
No files matched your search
@@ -120,6 +120,7 @@ async def test_updates_from_signals(hass, config_entry, config, controller, favo
|
||||
const.SIGNAL_PLAYER_EVENT, player.player_id, const.EVENT_PLAYER_STATE_CHANGED
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
state = hass.states.get("media_player.test_player")
|
||||
assert state.state == STATE_PLAYING
|
||||
|
||||
@@ -227,6 +228,7 @@ async def test_updates_from_players_changed(
|
||||
const.SIGNAL_CONTROLLER_EVENT, const.EVENT_PLAYERS_CHANGED, change_data
|
||||
)
|
||||
await event.wait()
|
||||
await hass.async_block_till_done()
|
||||
assert hass.states.get("media_player.test_player").state == STATE_PLAYING
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user