|
发表于 2020-6-11 23:56:38
|
显示全部楼层
本帖最后由 hugh_jie 于 2020-6-12 22:21 编辑
我是万能遥控器和插座不能用,删了空调插件也不行
Logger: homeassistant.config
Source: components/xiaomi_miio/gateway.py:4
First occurred: 下午11:51:04 (2 occurrences)
Last logged: 下午11:51:05
Platform error: switch
Platform error: remote
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config.py", line 777, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 273, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/__init__.py", line 8, in <module>
from .config_flow import CONF_FLOW_TYPE, CONF_GATEWAY
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/config_flow.py", line 12, in <module>
from .gateway import ConnectXiaomiGateway
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/gateway.py", line 4, in <module>
from miio import DeviceException, gateway
ImportError: cannot import name 'gateway' from 'miio' (/config/deps/lib/python3.7/site-packages/miio/__init__.py)
我的解决了,在尝试手动把\deps\lib\python3.7\site-packages\miio手动更新也失败之后,我直接把这个文件夹删掉了,本来想让HA自动修复一下的,结果重启之后一切都恢复了,意外之喜
|
|