Use builtin TimeoutError [o-s] (#109682)
This commit is contained in:
parent
cd0ee98dba
commit
438d3b01b9
94 changed files with 117 additions and 169 deletions
|
@ -377,7 +377,7 @@ async def test_async_poll_manual_hosts_6(
|
|||
with caplog.at_level(logging.DEBUG):
|
||||
caplog.clear()
|
||||
# The discovery events should not fire, wait with a timeout.
|
||||
with pytest.raises(asyncio.TimeoutError):
|
||||
with pytest.raises(TimeoutError):
|
||||
async with asyncio.timeout(1.0):
|
||||
await speaker_1_activity.event.wait()
|
||||
await hass.async_block_till_done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue