Fix Ecobee set humidity (#43954)

pull/43968/head
treylok 2020-12-05 07:13:46 -06:00 committed by GitHub
parent 378424b2c4
commit 180491f8cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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)."""