ha_face_detect icon indicating copy to clipboard operation
ha_face_detect copied to clipboard

啟動時報錯

Open wfchan opened this issue 3 years ago • 0 comments

Logger: homeassistant.components.sensor Source: custom_components/face_detect/sensor.py:289 Integration: Sensor (documentation, issues) First occurred: 6:30:30 PM (8 occurrences) Last logged: 6:30:49 PM

face_detect: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 446, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 702, 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'

wfchan avatar Dec 19 '22 10:12 wfchan