Fix Ecobee set humidity (#43954)
parent
378424b2c4
commit
180491f8cd
|
@ -24,6 +24,7 @@ from homeassistant.components.climate.const import (
|
||||||
SUPPORT_AUX_HEAT,
|
SUPPORT_AUX_HEAT,
|
||||||
SUPPORT_FAN_MODE,
|
SUPPORT_FAN_MODE,
|
||||||
SUPPORT_PRESET_MODE,
|
SUPPORT_PRESET_MODE,
|
||||||
|
SUPPORT_TARGET_HUMIDITY,
|
||||||
SUPPORT_TARGET_TEMPERATURE,
|
SUPPORT_TARGET_TEMPERATURE,
|
||||||
SUPPORT_TARGET_TEMPERATURE_RANGE,
|
SUPPORT_TARGET_TEMPERATURE_RANGE,
|
||||||
)
|
)
|
||||||
|
@ -161,6 +162,7 @@ SUPPORT_FLAGS = (
|
||||||
| SUPPORT_AUX_HEAT
|
| SUPPORT_AUX_HEAT
|
||||||
| SUPPORT_TARGET_TEMPERATURE_RANGE
|
| SUPPORT_TARGET_TEMPERATURE_RANGE
|
||||||
| SUPPORT_FAN_MODE
|
| SUPPORT_FAN_MODE
|
||||||
|
| SUPPORT_TARGET_HUMIDITY
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -651,7 +653,7 @@ class Thermostat(ClimateEntity):
|
||||||
|
|
||||||
def set_humidity(self, humidity):
|
def set_humidity(self, humidity):
|
||||||
"""Set the humidity level."""
|
"""Set the humidity level."""
|
||||||
self.data.ecobee.set_humidity(self.thermostat_index, humidity)
|
self.data.ecobee.set_humidity(self.thermostat_index, int(humidity))
|
||||||
|
|
||||||
def set_hvac_mode(self, hvac_mode):
|
def set_hvac_mode(self, hvac_mode):
|
||||||
"""Set HVAC mode (auto, auxHeatOnly, cool, heat, off)."""
|
"""Set HVAC mode (auto, auxHeatOnly, cool, heat, off)."""
|
||||||
|
|
Loading…
Reference in New Issue