mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 14:45:09 +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))
|
try_again('{} returned {}'.format(self._url, resp.status))
|
||||||
return
|
return
|
||||||
text = yield from resp.text()
|
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,
|
except (asyncio.TimeoutError, aiohttp.errors.ClientError,
|
||||||
aiohttp.errors.ClientDisconnectedError) as err:
|
aiohttp.errors.ClientDisconnectedError) as err:
|
||||||
try_again(err)
|
try_again(err)
|
||||||
|
Reference in New Issue
Block a user