- 积分
- 720
- 金钱
- 634
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 720
- 金钱
- 634
- HASS币
- 0
|
发表于 2022-12-4 09:35:01
|
显示全部楼层
Logger: homeassistant.components.sensor
Source: custom_components/face_detect/sensor.py:289
Integration: 传感器 (documentation, issues)
First occurred: 09:27:10 (3 occurrences)
Last logged: 09:27:12
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'
|
|