Use builtin TimeoutError [o-s] (#109682)

This commit is contained in:
Marc Mueller 2024-02-05 12:14:37 +01:00 committed by GitHub
parent cd0ee98dba
commit 438d3b01b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
94 changed files with 117 additions and 169 deletions

View file

@ -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()