From 30712e36338642abc1c4611b9178409b0b187b25 Mon Sep 17 00:00:00 2001 From: Thijs Wiefferink Date: Wed, 10 Apr 2024 21:06:59 +0000 Subject: [PATCH] Use built-in Timeouterror instead of imported one --- custom_components/crisp/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/crisp/api.py b/custom_components/crisp/api.py index 9d40ce7..3edd21b 100644 --- a/custom_components/crisp/api.py +++ b/custom_components/crisp/api.py @@ -1,7 +1,7 @@ """Sample API Client.""" + from __future__ import annotations -import asyncio import socket import aiohttp @@ -74,7 +74,7 @@ async def _api_wrapper( response.raise_for_status() return await response.json() - except asyncio.TimeoutError as exception: + except TimeoutError as exception: raise IntegrationBlueprintApiClientCommunicationError( "Timeout error fetching information", ) from exception