diff --git a/custom_components/pr_custom_component/api.py b/custom_components/pr_custom_component/api.py index aeec7c9..7957849 100644 --- a/custom_components/pr_custom_component/api.py +++ b/custom_components/pr_custom_component/api.py @@ -327,7 +327,7 @@ async def api_wrapper( headers = self._headers if not headers else headers data = data or {} try: - async with async_timeout.timeout(TIMEOUT, loop=asyncio.get_event_loop()): + async with async_timeout.timeout(TIMEOUT): if method == "get": response = await self._session.get(url, headers=headers) response_json = await response.json()