From 180491f8cd3a1c9d8419f67278bf5573f6bd8f4f Mon Sep 17 00:00:00 2001 From: treylok Date: Sat, 5 Dec 2020 07:13:46 -0600 Subject: [PATCH] Fix Ecobee set humidity (#43954) --- homeassistant/components/ecobee/climate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/ecobee/climate.py b/homeassistant/components/ecobee/climate.py index ccfddca4b03..94396bbf883 100644 --- a/homeassistant/components/ecobee/climate.py +++ b/homeassistant/components/ecobee/climate.py @@ -24,6 +24,7 @@ from homeassistant.components.climate.const import ( SUPPORT_AUX_HEAT, SUPPORT_FAN_MODE, SUPPORT_PRESET_MODE, + SUPPORT_TARGET_HUMIDITY, SUPPORT_TARGET_TEMPERATURE, SUPPORT_TARGET_TEMPERATURE_RANGE, ) @@ -161,6 +162,7 @@ SUPPORT_FLAGS = ( | SUPPORT_AUX_HEAT | SUPPORT_TARGET_TEMPERATURE_RANGE | SUPPORT_FAN_MODE + | SUPPORT_TARGET_HUMIDITY ) @@ -651,7 +653,7 @@ class Thermostat(ClimateEntity): def set_humidity(self, humidity): """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): """Set HVAC mode (auto, auxHeatOnly, cool, heat, off)."""