Don't pass in loop (#23984)
* Don't pass in loop * Revert some changes * Lint + Axis revert * reinstate loop * Fix a test * Set loop * Update camera.py * Lint
This commit is contained in:
parent
9e96397e6a
commit
f995ab9d54
117 changed files with 179 additions and 187 deletions
|
@ -160,7 +160,7 @@ class YrData:
|
|||
async_call_later(self.hass, minutes*60, self.fetching_data)
|
||||
try:
|
||||
websession = async_get_clientsession(self.hass)
|
||||
with async_timeout.timeout(10, loop=self.hass.loop):
|
||||
with async_timeout.timeout(10):
|
||||
resp = await websession.get(
|
||||
self._url, params=self._urlparams)
|
||||
if resp.status != 200:
|
||||
|
@ -247,4 +247,4 @@ class YrData:
|
|||
tasks.append(dev.async_update_ha_state())
|
||||
|
||||
if tasks:
|
||||
await asyncio.wait(tasks, loop=self.hass.loop)
|
||||
await asyncio.wait(tasks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue