core: IPMA weather component crashes randomly
Home Assistant release with the issue: 0.100.2 and previous
Last working Home Assistant release (if known): N/A
Operating environment (Hass.io/Docker/Windows/etc.): Hassio.
Integration: IPMA
Description of problem: Random crashes.
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
N/A
Traceback (if applicable):
2019-10-14 12:34:53 ERROR (MainThread) [homeassistant.components.weather] ipma: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/ipma/weather.py", line 129, in async_update
self._forecast = await self._station.forecast()
File "/usr/local/lib/python3.7/site-packages/pyipma/station.py", line 73, in forecast
_forecasts = await self.api.forecast(self.station.globalIdLocal)
File "/usr/local/lib/python3.7/site-packages/pyipma/api.py", line 86, in forecast
await self.wind_type_classe()
File "/usr/local/lib/python3.7/site-packages/pyipma/api.py", line 114, in wind_type_classe
data = await self.retrieve(url=API_WIND_TYPE)
File "/usr/local/lib/python3.7/site-packages/pyipma/api.py", line 25, in retrieve
async with self.websession.request('GET', url, **kwargs) as res:
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 1012, in __aenter__
self._resp = await self._coro
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 504, in _request
await resp.start(conn)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 847, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 591, in read
await self._waiter
concurrent.futures._base.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 292, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 446, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/ipma/weather.py", line 130, in async_update
self._description = self._forecast[0].description
File "/usr/local/lib/python3.7/site-packages/async_timeout/__init__.py", line 45, in __exit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.7/site-packages/async_timeout/__init__.py", line 92, in _do_exit
raise asyncio.TimeoutError
concurrent.futures._base.TimeoutError
Additional information: N/A
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (8 by maintainers)
The fix in 0.106.1 should have solved it
(that is not related to this bug)
we have been playing catchup with IPMA π¦
I just pushed an update in 0.106.1
Please check that version as soon as itβs released
remove the integration and add it again
error ?
Next release of HA will hopefully fix your issues, since the PR just got accepted
There is a new version of the component coming up in the next weeks, please wait π