remove async_timeout.timeout loop arg (#65)

This commit is contained in:
Justin Goette 2021-11-18 04:49:24 -05:00 committed by GitHub
parent fbf793c4c3
commit 3a2ced07f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()