2020-02-05 22:55:31 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.ztm_126_departures_from_1097_01 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
await self.async_update()
File "/config/custom_components/ztm/sensor.py", line 155, in async_update
if nocny != '':
UnboundLocalError: local variable 'nocny' referenced before assignment
2020-02-05 22:55:31 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.ztm_176_departures_from_1097_01 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
await self.async_update()
File "/config/custom_components/ztm/sensor.py", line 155, in async_update
if nocny != '':
UnboundLocalError: local variable 'nocny' referenced before assignment
2020-02-05 22:55:31 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.ztm_126_departures_from_1097_03 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
await self.async_update()
File "/config/custom_components/ztm/sensor.py", line 155, in async_update
if nocny != '':
UnboundLocalError: local variable 'nocny' referenced before assignment
2020-02-05 22:56:31 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.ztm_126_departures_from_1097_01 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
await self.async_update()
File "/config/custom_components/ztm/sensor.py", line 155, in async_update
if nocny != '':
UnboundLocalError: local variable 'nocny' referenced before assignment
2020-02-05 22:56:31 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.ztm_126_departures_from_1097_03 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
await self.async_update()
File "/config/custom_components/ztm/sensor.py", line 155, in async_update
if nocny != '':
UnboundLocalError: local variable 'nocny' referenced before assignment
2020-02-05 22:56:31 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.ztm_176_departures_from_1097_01 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
await self.async_update()
File "/config/custom_components/ztm/sensor.py", line 155, in async_update
if nocny != '':
UnboundLocalError: local variable 'nocny' referenced before assignment
konfiguracja:
błędy: