|
发表于 2019-5-25 02:05:19
|
显示全部楼层
楼主辛苦了,刚刚测试你的更新,发现一直报错如下:
{"error_code":222202,"error_msg":"pic not has face","log_id":1368654487204084341,"timestamp":1558720408,"cached":0,"result":null}
上午1:53 custom_components/baidu_face/sensor.py (ERROR)
{"error_code":223120,"error_msg":"liveness check fail","log_id":1368654487204057851,"timestamp":1558720405,"cached":0,"result":null}
上午1:53 custom_components/baidu_face/sensor.py (ERROR)
{"error_code":222202,"error_msg":"pic not has face","log_id":1345050787204005021,"timestamp":1558720400,"cached":0,"result":null}
上午1:53 custom_components/baidu_face/sensor.py (ERROR)
Updating baidu_face sensor took longer than the scheduled update interval 0:00:02
上午1:53 helpers/entity_platform.py (WARNING) - message first occured at 上午1:26 and shows up 126 times
{"error_code":223120,"error_msg":"liveness check fail","log_id":1345050787203964741,"timestamp":1558720396,"cached":0,"result":null}
上午1:53 custom_components/baidu_face/sensor.py (ERROR)
{"error_code":222202,"error_msg":"pic not has face","log_id":1345050787203933871,"timestamp":1558720393,"cached":0,"result":null}
上午1:53 custom_components/baidu_face/sensor.py (ERROR)
这应该是百度云返回的信息,不应该作为错误处理吧,只是没有检测到人而已,是不是应该把这个
_LOGGER.error(response.text) 注释掉啊 |
|