本帖最后由 killadm 于 2019-2-28 22:44 编辑
0.88没问题
0.89.0b0所有的第三方climate都失效了
临时解决方法:跟0.88的media_player一样,from homeassistant.components.climate import只保留ClimateDevice, PLATFORM_SCHEMA,其他的从homeassistant.components.climate.const引入
例如小米空调伴侣修改完之后变成
from homeassistant.components.climate import (
ClimateDevice, PLATFORM_SCHEMA, )
from homeassistant.components.climate.const import (
ATTR_OPERATION_MODE, SUPPORT_ON_OFF,
SUPPORT_TARGET_TEMPERATURE, SUPPORT_OPERATION_MODE, SUPPORT_FAN_MODE,
SUPPORT_SWING_MODE, DOMAIN, )
之后再把homeassistant/components/xiaomi_miio中的其他文件复制到/custom_components/xiaomi_miio,不然别的miio插件加载不了 |