Logger: homeassistant.components.sensor
Source: custom_components/face_detect/sensor.py:289
Integration: Sensor (documentation, issues)
First occurred: 14:42:25 (8 occurrences)
Last logged: 14:42:54
face_detect: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 715, in async_device_update
await task
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/face_detect/sensor.py", line 132, in update
self._data.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 192, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/face_detect/sensor.py", line 289, in update
if (res1["result"] is None):
KeyError: 'result'