Use builtin TimeoutError [a-d] (#109678)

This commit is contained in:
Marc Mueller 2024-02-05 11:31:33 +01:00 committed by GitHub
parent 41a256a3ff
commit c82933175d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
63 changed files with 97 additions and 137 deletions

View file

@ -1,5 +1,4 @@
"""Test the Blink init."""
import asyncio
from unittest.mock import AsyncMock, MagicMock
from aiohttp import ClientError
@ -23,7 +22,7 @@ PIN = "1234"
@pytest.mark.parametrize(
("the_error", "available"),
[(ClientError, False), (asyncio.TimeoutError, False), (None, False)],
[(ClientError, False), (TimeoutError, False), (None, False)],
)
async def test_setup_not_ready(
hass: HomeAssistant,