diff --git a/homeassistant/components/climate/__init__.py b/homeassistant/components/climate/__init__.py index a165521f0bd42..2624424344cf3 100644 --- a/homeassistant/components/climate/__init__.py +++ b/homeassistant/components/climate/__init__.py @@ -251,7 +251,6 @@ def state_attributes(self): if supported_features & SUPPORT_TARGET_HUMIDITY: data[ATTR_HUMIDITY] = self.target_humidity - data[ATTR_CURRENT_HUMIDITY] = self.current_humidity if supported_features & SUPPORT_TARGET_HUMIDITY_LOW: data[ATTR_MIN_HUMIDITY] = self.min_humidity @@ -285,6 +284,9 @@ def state_attributes(self): is_aux_heat = self.is_aux_heat_on data[ATTR_AUX_HEAT] = STATE_ON if is_aux_heat else STATE_OFF + if self.current_humidity is not None: + data[ATTR_CURRENT_HUMIDITY] = self.current_humidity + return data @property