Closed jacekpaszkowski closed 4 years ago
I've also found this kind of errors in my logs, not sure if it's related
2020-11-17 22:22:01 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 616, in _update_entity_states
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 283, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
sstate = self.state
File "/config/custom_components/smartweather/sensor.py", line 205, in state
value = getattr(self.coordinator.data[0], self._sensor, None)
IndexError: list index out of range
``
This issue with the missing condition has been that until recently there was not a final list of possible conditions communicated by WeatherFlow. I now have it, and have adjusted the integration accordingly. It will be part of the next release common out soon.
It is hard to say what the second error is caused by, but let us see if it pops up again, after the next release.
V2.0.5 released. Please close this issue if it fixes your problem.
@briis after updgrading to v2.0.5 it works ok. thank you! :)
Hi,
i've noticed that for some forecasts attribute
condition
has valuenull
. This causes lovelace weather card problems.weather.smartweather Eg.
and values from weather.dark_sky: