Make yr compatible with 0.32

This commit is contained in:
Paulus Schoutsen 2016-11-10 21:49:56 -08:00
parent 1b79722b69
commit 72407c2f95

View File

@ -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)