From 3a2ced07f29f0869c26730013dc6499f7667ab47 Mon Sep 17 00:00:00 2001 From: Justin Goette <53531335+jcgoette@users.noreply.github.com> Date: Thu, 18 Nov 2021 04:49:24 -0500 Subject: [PATCH] remove async_timeout.timeout loop arg (#65) --- custom_components/integration_blueprint/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()