Nonetype
eloo opened this issue · 0 comments
Logger: homeassistant.helpers.entity
Source: custom_components/sbahn_munich/sensor.py:130
First occurred: 2:01:08 (673 occurrences)
Last logged: 3:53:11
Update for sensor.sbahn_munich_olching fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 292, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 490, in async_device_update
raise exc
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/sbahn_munich/sensor.py", line 130, in update
self._state = self._timetable[0].aimed_departure
AttributeError: 'NoneType' object has no attribute 'aimed_departure'