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

Departure sensor error #6

Closed DSorlov closed 3 years ago

DSorlov commented 3 years ago

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 355, in async_update_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 409, in _async_write_ha_state extra_state_attributes = self.device_state_attributes File "/config/custom_components/hasl3/sensor.py", line 458, in device_state_attributes val['attribution'] = self._sensordata["attribution"] KeyError: 'attribution'

DSorlov commented 3 years ago

Resolved in 3.0.0-beta.2