From b562416eb218c5d96b8ba5f462f70bc9308aa905 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 3 May 2022 09:33:50 -0500 Subject: [PATCH] Remove humidify_supported and dehumidify_supported attributes from nexia (#71248) These non-standard attributes can already be infered from the dehumidify_setpoint or humidify_setpoint and took up space in the database every time any of the values changes --- homeassistant/components/nexia/climate.py | 9 --------- homeassistant/components/nexia/const.py | 2 -- tests/components/nexia/test_climate.py | 4 ---- 3 files changed, 15 deletions(-) diff --git a/homeassistant/components/nexia/climate.py b/homeassistant/components/nexia/climate.py index fc85f72e503..7eeb04c5676 100644 --- a/homeassistant/components/nexia/climate.py +++ b/homeassistant/components/nexia/climate.py @@ -38,9 +38,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback from .const import ( ATTR_AIRCLEANER_MODE, ATTR_DEHUMIDIFY_SETPOINT, - ATTR_DEHUMIDIFY_SUPPORTED, ATTR_HUMIDIFY_SETPOINT, - ATTR_HUMIDIFY_SUPPORTED, ATTR_RUN_MODE, ATTR_ZONE_STATUS, DOMAIN, @@ -356,13 +354,6 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity): if not self._has_relative_humidity: return data - data.update( - { - ATTR_DEHUMIDIFY_SUPPORTED: self._has_dehumidify_support, - ATTR_HUMIDIFY_SUPPORTED: self._has_humidify_support, - } - ) - if self._has_dehumidify_support: dehumdify_setpoint = percent_conv( self._thermostat.get_dehumidify_setpoint() diff --git a/homeassistant/components/nexia/const.py b/homeassistant/components/nexia/const.py index 4fa3cb022f8..5d84e8a3075 100644 --- a/homeassistant/components/nexia/const.py +++ b/homeassistant/components/nexia/const.py @@ -28,8 +28,6 @@ ATTR_AIRCLEANER_MODE = "aircleaner_mode" ATTR_RUN_MODE = "run_mode" ATTR_ZONE_STATUS = "zone_status" -ATTR_HUMIDIFY_SUPPORTED = "humidify_supported" -ATTR_DEHUMIDIFY_SUPPORTED = "dehumidify_supported" ATTR_HUMIDIFY_SETPOINT = "humidify_setpoint" ATTR_DEHUMIDIFY_SETPOINT = "dehumidify_setpoint" diff --git a/tests/components/nexia/test_climate.py b/tests/components/nexia/test_climate.py index edd5d56e79a..312d78ac256 100644 --- a/tests/components/nexia/test_climate.py +++ b/tests/components/nexia/test_climate.py @@ -16,11 +16,9 @@ async def test_climate_zones(hass): "current_humidity": 52.0, "current_temperature": 22.8, "dehumidify_setpoint": 45.0, - "dehumidify_supported": True, "fan_mode": "Auto", "fan_modes": ["Auto", "On", "Circulate"], "friendly_name": "Nick Office", - "humidify_supported": False, "humidity": 45.0, "hvac_action": "cooling", "hvac_modes": ["off", "auto", "heat_cool", "heat", "cool"], @@ -51,11 +49,9 @@ async def test_climate_zones(hass): "current_humidity": 36.0, "current_temperature": 25.0, "dehumidify_setpoint": 50.0, - "dehumidify_supported": True, "fan_mode": "Auto", "fan_modes": ["Auto", "On", "Circulate"], "friendly_name": "Kitchen", - "humidify_supported": False, "humidity": 50.0, "hvac_action": "idle", "hvac_modes": ["off", "auto", "heat_cool", "heat", "cool"],