Skip to content

Commit

Permalink
Use built-in Timeouterror instead of imported one
Browse files Browse the repository at this point in the history
  • Loading branch information
NLthijs48 committed Apr 10, 2024
1 parent 8d08349 commit 30712e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/crisp/api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Sample API Client."""

from __future__ import annotations

import asyncio
import socket

import aiohttp
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 30712e3

Please sign in to comment.