mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Make yr compatible with 0.32
This commit is contained in:
parent
1b79722b69
commit
72407c2f95
@ -154,7 +154,7 @@ class YrData(object):
|
||||
try_again('{} returned {}'.format(self._url, resp.status))
|
||||
return
|
||||
text = yield from resp.text()
|
||||
self.hass.async_add_job(resp.release())
|
||||
self.hass.async_add_job(resp.release)
|
||||
except (asyncio.TimeoutError, aiohttp.errors.ClientError,
|
||||
aiohttp.errors.ClientDisconnectedError) as err:
|
||||
try_again(err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user