Skip to content

Commit

Permalink
fix: remove loop parameter from timeout
Browse files Browse the repository at this point in the history
closes #13 
Co-authored-by: Andrew Blackburn <[email protected]>
  • Loading branch information
alandtse authored Jun 26, 2023
2 parents 572b358 + 453c921 commit d0d25b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/pr_custom_component/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ async def api_wrapper(
headers = self._headers if not headers else headers
data = data or {}
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)
response_json = await response.json()
Expand Down

0 comments on commit d0d25b3

Please sign in to comment.