Skip to content

Commit

Permalink
remove async_timeout.timeout loop arg (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcgoette committed Nov 18, 2021
1 parent fbf793c commit 3a2ced0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/integration_blueprint/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def api_wrapper(
) -> 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()
Expand Down

0 comments on commit 3a2ced0

Please sign in to comment.