diff --git a/custom_components/integration_blueprint/api.py b/custom_components/integration_blueprint/api.py index 4001998..5414e23 100644 --- a/custom_components/integration_blueprint/api.py +++ b/custom_components/integration_blueprint/api.py @@ -38,7 +38,7 @@ class IntegrationBlueprintApiClient: ) -> dict: """Get information from the API.""" 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) return await response.json()