- 积分
- 231
- 金钱
- 199
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 231
- 金钱
- 199
- HASS币
- 0
|
发表于 2019-3-22 09:37:29
|
显示全部楼层
查了一下,是climate组件分离出一些常量定义。
https://github.com/jamiewalters/python-verisure-climate/issues/4
修改
-from homeassistant.components.climate import (
- ClimateDevice, SUPPORT_TARGET_TEMPERATURE, SUPPORT_AWAY_MODE,
- SUPPORT_ON_OFF, SUPPORT_OPERATION_MODE)
+from homeassistant.components.climate import (ClimateDevice)
+from homeassistant.components.climate.const import (
+ SUPPORT_TARGET_TEMPERATURE,
+ SUPPORT_AWAY_MODE, SUPPORT_ON_OFF,
+ SUPPORT_OPERATION_MODE)
|
|