|
发表于 2021-12-7 20:08:40
|
显示全部楼层
请教大神,我用ha集成中的tuya,但是集成里显示设置失败是什么原因呢,查了好多没有相关的问题
2021-12-05 13:42:01 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [email protected] for tuya
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/tuya/__init__.py", line 63, in async_setup_entry
success = await _init_tuya_sdk(hass, entry)
File "/usr/src/homeassistant/homeassistant/components/tuya/__init__.py", line 118, in _init_tuya_sdk
await hass.async_add_executor_job(home_manager.update_device_cache)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/tuya_iot/home.py", line 57, in update_device_cache
self.device_manager.update_device_caches(device_ids)
File "/usr/local/lib/python3.9/site-packages/tuya_iot/device.py", line 265, in update_device_caches
self.update_device_function_cache(devIds)
File "/usr/local/lib/python3.9/site-packages/tuya_iot/device.py", line 300, in update_device_function_cache
for function in result["functions"]:
KeyError: 'functions' |
|