Use builtin TimeoutError [k-n] (#109681)
This commit is contained in:
parent
7a89e58873
commit
a9147cf3dd
58 changed files with 80 additions and 108 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue