Skip to content

Commit

Permalink
Merge pull request #58 from iprak/remove_async_timeout_loop
Browse files Browse the repository at this point in the history
removed loop from async_timeout.timeout
  • Loading branch information
iprak authored Dec 11, 2021
2 parents 19e60c8 + 6bd1bf8 commit a24e7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/yahoofinance/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async def get_json(self) -> dict:
url = BASE + ",".join(self._symbols)
_LOGGER.debug("Requesting data from '%s'", url)

async with async_timeout.timeout(WEBSESSION_TIMEOUT, loop=self.loop):
async with async_timeout.timeout(WEBSESSION_TIMEOUT):
response = await self.websession.get(url)
json = await response.json()

Expand Down

0 comments on commit a24e7b2

Please sign in to comment.