Skip to content

Commit

Permalink
Drop loop kwarg from async_timeout.timeout (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
drthanwho authored Nov 24, 2021
1 parent be64467 commit 4cc8cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/healthchecksio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 4cc8cd6

Please sign in to comment.