Use asyncio.timeout [o-s] (#98451)
This commit is contained in:
parent
496a975c58
commit
063ce9159d
41 changed files with 70 additions and 92 deletions
|
@ -6,7 +6,6 @@ import asyncio
|
|||
import logging
|
||||
from typing import Any
|
||||
|
||||
import async_timeout
|
||||
from pyrainbird.async_client import (
|
||||
AsyncRainbirdClient,
|
||||
AsyncRainbirdController,
|
||||
|
@ -106,7 +105,7 @@ class RainbirdConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
)
|
||||
)
|
||||
try:
|
||||
async with async_timeout.timeout(TIMEOUT_SECONDS):
|
||||
async with asyncio.timeout(TIMEOUT_SECONDS):
|
||||
return await controller.get_serial_number()
|
||||
except asyncio.TimeoutError as err:
|
||||
raise ConfigFlowError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue