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

@ -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