ha0y / xiaomi_miot_raw

All-in-one & Easy-to-use. Integrate all your Xiaomi Smart Home - with a single integration and NO YAML files - into Home Assistant.
Apache License 2.0
2.2k stars 230 forks source link

Unexpected exception importing platform custom_components.xiaomi_miot_raw #519

Closed dufi67 closed 1 year ago

dufi67 commented 1 year ago

Logger: homeassistant.loader Source: custom_components/xiaomi_miot_raw/basic_dev_class.py:684 Integration: Xiaomi MIoT (documentation, issues) First occurred: 13:40:43 (3 occurrences) Last logged: 13:40:43

Unexpected exception importing platform custom_components.xiaomi_miot_raw.switch 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 833, in get_platform cache[full_name] = self._import_platform(platform_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1206, in _gcd_import File "", line 1178, in _find_and_load File "", line 1149, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/config/custom_components/xiaomi_miot_raw/switch.py", line 16, in from .basic_dev_class import ( File "/config/custom_components/xiaomi_miot_raw/basic_dev_class.py", line 63, in 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'

Home Assistant 2023.6.1 Supervisor 2023.06.1 Operating System 10.2 Frontend 20230608.0 - latest

Xiaomi MIoT ver: 1.4.3

dufi67 commented 1 year ago

Double, sorry