GoogleGeocode-HASS
GoogleGeocode-HASS copied to clipboard
Errors at startup
Everytime i am forced to restart HA i get always the same errors:
Questo errore ha avuto origine da un'integrazione personalizzata.
Logger: homeassistant.helpers.entity
Source: custom_components/google_geocode/sensor.py:156
Integration: google_geocode (documentation)
First occurred: 11:56:37 (6 occurrences)
Last logged: 11:58:37
Update for sensor.fha fails
Update for sensor.maurizio fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 554, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 781, in async_device_update
await hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 190, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/google_geocode/sensor.py", line 156, in update
zone_check = self.hass.states.get(self._origin_entity_id).state
AttributeError: 'NoneType' object has no attribute 'state'
Is there a way to fix this?