Use builtin TimeoutError [core + helpers] (#109684)

This commit is contained in:
Marc Mueller
2024-02-05 12:09:54 +01:00
committed by GitHub
parent a9147cf3dd
commit cd0ee98dba
19 changed files with 70 additions and 74 deletions

View File

@@ -4417,7 +4417,7 @@ async def test_async_call_later_cancel(hass: HomeAssistant) -> None:
# fast forward time beyond scheduled
async_fire_time_changed_exact(hass, dt_util.utcnow() + timedelta(seconds=delay))
with contextlib.suppress(asyncio.TimeoutError):
with contextlib.suppress(TimeoutError):
async with asyncio.timeout(delay + delay_tolerance):
assert await future, "callback not canceled"