Use builtin TimeoutError [o-s] (#109682)

This commit is contained in:
Marc Mueller 2024-02-05 12:14:37 +01:00 committed by GitHub
parent cd0ee98dba
commit 438d3b01b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
94 changed files with 117 additions and 169 deletions

View file

@ -1,7 +1,6 @@
"""Config flow for Rabbit Air integration."""
from __future__ import annotations
import asyncio
import logging
from typing import Any
@ -36,7 +35,7 @@ async def validate_input(hass: HomeAssistant, data: dict[str, Any]) -> dict[str,
except ValueError as err:
# Most likely caused by the invalid access token.
raise InvalidAccessToken from err
except asyncio.TimeoutError as err:
except TimeoutError as err:
# Either the host doesn't respond or the auth failed.
raise TimeoutConnect from err
except OSError as err: