From cd0a743b0c21a6364ff53f5564db143242f4b090 Mon Sep 17 00:00:00 2001 From: Sander Date: Mon, 11 Dec 2023 20:55:31 +0000 Subject: [PATCH] Remove async-timeout as dependency --- custom_components/knmi/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/knmi/api.py b/custom_components/knmi/api.py index 4f8a144..e6e7746 100644 --- a/custom_components/knmi/api.py +++ b/custom_components/knmi/api.py @@ -3,7 +3,6 @@ import socket import aiohttp -import async_timeout from .const import API_ENDPOINT, API_TIMEOUT @@ -48,7 +47,7 @@ async def async_get_data(self) -> dict: async def api_wrapper(self, method: str, url: str) -> dict: """Get information from the API.""" try: - async with async_timeout.timeout(API_TIMEOUT): + async with asyncio.timeout(API_TIMEOUT): if method == "get": response = await self._session.get(url) response_text = await response.text()