|
本帖最后由 lghhome 于 2024-3-12 12:47 编辑
之前xiaomi miot auto显示有更新,但是更新到50%就出错,不能更新。今天升级了个HA2024.3.0版本后,重新启动xiaomi miot auto就显示未加载,怎么都不能加载了,求助求助!!!
[backcolor=var(--mdc-theme-surface,#fff)][color=var(--mdc-dialog-content-ink-color,rgba(0,0,0,.6))]日志: homeassistant.setup
来源: setup.py:296
首次发生: 12:43:30 (1 全部发生)
上次记录: 12:43:30
Setup failed for custom integration 'xiaomi_miot': Unable to import component: No module named 'imp'Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 296, in _async_setup_component component = await integration.async_get_component() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 894, in async_get_component comp = self.get_component() ^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 921, in get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 995, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/config/custom_components/xiaomi_miot/__init__.py", line 32, in <module> from miio import ( File "/usr/local/lib/python3.12/site-packages/miio/__init__.py", line 12, in <module> from miio.device import Device, DeviceStatus # isort: skip ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/miio/device.py", line 13, in <module> from .miioprotocol import MiIOProtocol File "/usr/local/lib/python3.12/site-packages/miio/miioprotocol.py", line 13, in <module> import construct File "/usr/local/lib/python3.12/site-packages/construct/__init__.py", line 22, in <module> from construct.core import * File "/usr/local/lib/python3.12/site-packages/construct/core.py", line 3, in <module> import struct, io, binascii, itertools, collections, pickle, sys, os, tempfile, hashlib, importlib, impModuleNotFoundError: No module named 'imp'
|
|