本帖最后由 dongqiyer 于 2022-1-28 17:49 编辑
config
我建了三个用户组,用1,2,test
有个新错误,result,我没有再另外使用baidu api,应该不是其他api的问题
Logger: homeassistant.components.sensor
Source: custom_components/face_detect/sensor.py:286
Integration: 传感器 ([color=var(--primary-color)]documentation, [color=var(--primary-color)]issues)
First occurred: 17:43:19 (1 occurrences)
Last logged: 17:43:19 face_detect: Error on device update!Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 684, in async_device_update await task File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, 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 195, in wrapper result = method(*args, **kwargs) File "/config/custom_components/face_detect/sensor.py", line 286, in update if (res1["result"] is None):KeyError: 'result'
|