Use builtin TimeoutError [k-n] (#109681)
This commit is contained in:
parent
7a89e58873
commit
a9147cf3dd
58 changed files with 80 additions and 108 deletions
|
@ -32,7 +32,7 @@ async def validate_input(hass: HomeAssistant, data: dict[str, Any]) -> dict[str,
|
|||
if error.status == 403:
|
||||
raise InvalidAuth from error
|
||||
raise CannotConnect from error
|
||||
except (aiohttp.ClientError, asyncio.TimeoutError) as error:
|
||||
except (aiohttp.ClientError, TimeoutError) as error:
|
||||
raise CannotConnect from error
|
||||
|
||||
return token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue