hasl-sensor / integration

Swedish Public Transport Sensor (HASL). Formerly named HomeAssistant SL Sensor
https://hasl.sorlov.com
Apache License 2.0
36 stars 8 forks source link

Errors appears in log #13

Closed johnekarlsson closed 2 years ago

johnekarlsson commented 3 years ago

The error below is appearing regularly (every 5th minute or so) in the log. The component works as it did before, and there is no registered problem with the api.

Logger: homeassistant Source: custom_components/hasl3/sensor.py:531 Integration: SL Integration (HASL) (documentation, issues) First occurred: 16:59:40 (12 occurrences) Last logged: 17:05:10

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 709, in _update_entity_states await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 406, in async_update_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 453, in _async_write_ha_state state = self._stringify_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 425, in _stringify_state state = self.state File "/config/custom_components/hasl3/sensor.py", line 531, in state return len(self._sensordata["data"]) KeyError: 'data'