mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Make yr compatible with 0.32
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user