|
发表于 2024-3-9 23:44:28
|
显示全部楼层
本帖最后由 mychenfeng 于 2024-3-9 23:45 编辑
装完xiaomi miot插件后出现错误,日志如下
日志: homeassistant.loader
来源: loader.py:1025
首次发生: 22:44:33 (36 全部发生)
上次记录: 23:39:45
Unexpected exception importing platform custom_components.xiaomi_miot_raw.sensor
Unexpected exception importing platform custom_components.xiaomi_miot_raw.binary_sensor
Unexpected exception importing platform custom_components.xiaomi_miot_raw.number
Unexpected exception importing platform custom_components.xiaomi_miot_raw.select
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1025, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1058, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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_raw/sensor.py", line 20, in <module>
from .basic_dev_class import (
File "/config/custom_components/xiaomi_miot_raw/basic_dev_class.py", line 63, in <module>
class GenericMiotDevice(Entity):
File "/config/custom_components/xiaomi_miot_raw/basic_dev_class.py", line 684, in GenericMiotDevice
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?
第二个错误如下:
日志: homeassistant.setup
来源: setup.py:466
首次发生: 22:44:33 (36 全部发生)
上次记录: 23:39:45
Unable to prepare setup for platform 'xiaomi_miot_raw.sensor': Platform not found (Exception importing custom_components.xiaomi_miot_raw.sensor).
Unable to prepare setup for platform 'xiaomi_miot_raw.binary_sensor': Platform not found (Exception importing custom_components.xiaomi_miot_raw.binary_sensor).
Unable to prepare setup for platform 'xiaomi_miot_raw.number': Platform not found (Exception importing custom_components.xiaomi_miot_raw.number).
Unable to prepare setup for platform 'xiaomi_miot_raw.select': Platform not found (Exception importing custom_components.xiaomi_miot_raw.select).
|
|