Use builtin TimeoutError [k-n] (#109681)

This commit is contained in:
Marc Mueller 2024-02-05 12:08:18 +01:00 committed by GitHub
parent 7a89e58873
commit a9147cf3dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
58 changed files with 80 additions and 108 deletions

View file

@ -1,5 +1,4 @@
"""The tests for the KMtronic switch platform."""
import asyncio
from datetime import timedelta
from http import HTTPStatus
@ -156,7 +155,7 @@ async def test_failed_update(
aioclient_mock.clear_requests()
aioclient_mock.get(
"http://1.1.1.1/status.xml",
exc=asyncio.TimeoutError(),
exc=TimeoutError(),
)
async_fire_time_changed(hass, future)