From 4cc8cd63fd2526256d1c28124d643da329a6b331 Mon Sep 17 00:00:00 2001 From: Thanasis Date: Wed, 24 Nov 2021 19:06:59 +0100 Subject: [PATCH] Drop loop kwarg from async_timeout.timeout (#25) --- custom_components/healthchecksio/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/healthchecksio/__init__.py b/custom_components/healthchecksio/__init__.py index 11e25a3..2a4400f 100644 --- a/custom_components/healthchecksio/__init__.py +++ b/custom_components/healthchecksio/__init__.py @@ -101,7 +101,7 @@ async def update_data(self): verify_ssl = not self.self_hosted or self.site_root.startswith("https") session = async_get_clientsession(self.hass, verify_ssl) headers = {"X-Api-Key": self.api_key} - async with async_timeout.timeout(10, loop=asyncio.get_event_loop()): + async with async_timeout.timeout(10): data = await session.get( f"{self.site_root}/api/v1/checks/", headers=headers )