|
发表于 2023-2-28 12:29:08
|
显示全部楼层
修改mainfest
"requirements": ["baidu-aip==2.2.18.0","pillow>=9.2.0"]
检查Yaml不报错了
但是日志提示
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(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/baidu_face/sensor.py", line 108, in setup_platform
add_devices([FaceSensor(name, camera_entity_id, port, token, baidu_client, group_list, options, tmp_path, DEFAULT_REQUEST_TYPE, local_file)])
UnboundLocalError: local variable 'DEFAULT_REQUEST_TYPE' referenced before assignment |
|