remove async_timeout.timeout loop arg (#65)
This commit is contained in:
parent
fbf793c4c3
commit
3a2ced07f2
@ -38,7 +38,7 @@ class IntegrationBlueprintApiClient:
|
|||||||
) -> dict:
|
) -> dict:
|
||||||
"""Get information from the API."""
|
"""Get information from the API."""
|
||||||
try:
|
try:
|
||||||
async with async_timeout.timeout(TIMEOUT, loop=asyncio.get_event_loop()):
|
async with async_timeout.timeout(TIMEOUT):
|
||||||
if method == "get":
|
if method == "get":
|
||||||
response = await self._session.get(url, headers=headers)
|
response = await self._session.get(url, headers=headers)
|
||||||
return await response.json()
|
return await response.json()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user