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 changespull/71250/head
parent
eb10654e01
commit
b562416eb2
|
@ -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()
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"],
|
||||
|
|
Loading…
Reference in New Issue