- 积分
- 222
- 金钱
- 175
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 222
- 金钱
- 175
- HASS币
- 0
|
发表于 2020-10-31 22:48:35
|
显示全部楼层
你好,我添加后报错
2020-10-31 22:45:10 ERROR (MainThread) [homeassistant.components.climate] Error while setting up xiaomi_miio_airconditioningcompanion platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/xiaomi_miio_airconditioningcompanion/climate.py", line 114, in async_setup_platform
from miio import AirConditioningCompanionMcn02, DeviceException
ImportError: cannot import name 'AirConditioningCompanionMcn02' from 'miio' (/usr/local/lib/python3.8/site-packages/miio/__init__.py)
这是我添加的东西
climate:
- platform: xiaomi_miio_airconditioningcompanion
name: xiaomi Air Conditioning Companion 2
host: ***
token: ***
target_sensor: sensor.temperature_158d00036b8b3c
scan_interval: 60
用的是这个https://github.com/EugeneLiu/xiaomi_airconditioningcompanionMCN02
请问怎么回事呢
|
|