From ba546e107239c0bbb46858cdc548addd704f2444 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 16 Nov 2022 20:47:58 +0100 Subject: [PATCH] Use _attr_supported_features in nexia climate (#82218) --- homeassistant/components/nexia/climate.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/nexia/climate.py b/homeassistant/components/nexia/climate.py index f8c08b4efd6..aa7c55df33f 100644 --- a/homeassistant/components/nexia/climate.py +++ b/homeassistant/components/nexia/climate.py @@ -166,12 +166,11 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity): self._has_emergency_heat = self._thermostat.has_emergency_heat() self._has_humidify_support = self._thermostat.has_humidify_support() self._has_dehumidify_support = self._thermostat.has_dehumidify_support() - supported = NEXIA_SUPPORTED + self._attr_supported_features = NEXIA_SUPPORTED if self._has_humidify_support or self._has_dehumidify_support: - supported |= ClimateEntityFeature.TARGET_HUMIDITY + self._attr_supported_features |= ClimateEntityFeature.TARGET_HUMIDITY if self._has_emergency_heat: - supported |= ClimateEntityFeature.AUX_HEAT - self._attr_supported_features = supported + self._attr_supported_features |= ClimateEntityFeature.AUX_HEAT self._attr_preset_modes = self._zone.get_presets() self._attr_fan_modes = self._thermostat.get_fan_modes() self._attr_hvac_modes = HVAC_MODES