- 积分
- 7608
- 金钱
- 4616
- 威望
- 0
- 贡献
- 0
- HASS币
- 398
超级版主
我就是六神
- 积分
- 7608
- 金钱
- 4616
- HASS币
- 398
|
发表于 2019-4-6 20:33:42
|
显示全部楼层
0.88版本 climate的 import 有变化
要把
from homeassistant.components.climate import (
ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW, DOMAIN,
ClimateDevice, PLATFORM_SCHEMA, STATE_AUTO,
STATE_COOL, STATE_HEAT, SUPPORT_TARGET_TEMPERATURE,
SUPPORT_TARGET_TEMPERATURE_HIGH, SUPPORT_TARGET_TEMPERATURE_LOW,
SUPPORT_OPERATION_MODE)
改成
from homeassistant.components.climate import (
ClimateDevice, PLATFORM_SCHEMA, )
from homeassistant.components.climate.const import (
ATTR_OPERATION_MODE, DOMAIN, SUPPORT_FAN_MODE, SUPPORT_ON_OFF,
SUPPORT_OPERATION_MODE, SUPPORT_SWING_MODE, SUPPORT_TARGET_TEMPERATURE, )
|
|