Remove deprecated aux heat from elkm1 (#145148)

This commit is contained in:
G Johansson 2025-05-18 20:50:33 +02:00 committed by GitHub
parent 3f59b1c376
commit 520c964656
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 49 deletions

View File

@ -20,10 +20,8 @@ from homeassistant.components.climate import (
from homeassistant.const import PRECISION_WHOLE
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
from . import ElkM1ConfigEntry
from .const import DOMAIN
from .entity import ElkEntity, create_elk_entities
SUPPORT_HVAC = [
@ -78,7 +76,6 @@ class ElkThermostat(ElkEntity, ClimateEntity):
_attr_precision = PRECISION_WHOLE
_attr_supported_features = (
ClimateEntityFeature.FAN_MODE
| ClimateEntityFeature.AUX_HEAT
| ClimateEntityFeature.TARGET_TEMPERATURE_RANGE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
@ -128,11 +125,6 @@ class ElkThermostat(ElkEntity, ClimateEntity):
"""Return the current humidity."""
return self._element.humidity
@property
def is_aux_heat(self) -> bool:
"""Return if aux heater is on."""
return self._element.mode == ThermostatMode.EMERGENCY_HEAT
@property
def fan_mode(self) -> str | None:
"""Return the fan setting."""
@ -151,34 +143,6 @@ class ElkThermostat(ElkEntity, ClimateEntity):
thermostat_mode, fan_mode = HASS_TO_ELK_HVAC_MODES[hvac_mode]
self._elk_set(thermostat_mode, fan_mode)
async def async_turn_aux_heat_on(self) -> None:
"""Turn auxiliary heater on."""
async_create_issue(
self.hass,
DOMAIN,
"migrate_aux_heat",
breaks_in_ha_version="2025.4.0",
is_fixable=True,
is_persistent=True,
translation_key="migrate_aux_heat",
severity=IssueSeverity.WARNING,
)
self._elk_set(ThermostatMode.EMERGENCY_HEAT, None)
async def async_turn_aux_heat_off(self) -> None:
"""Turn auxiliary heater off."""
async_create_issue(
self.hass,
DOMAIN,
"migrate_aux_heat",
breaks_in_ha_version="2025.4.0",
is_fixable=True,
is_persistent=True,
translation_key="migrate_aux_heat",
severity=IssueSeverity.WARNING,
)
self._elk_set(ThermostatMode.HEAT, None)
async def async_set_fan_mode(self, fan_mode: str) -> None:
"""Set new target fan mode."""
thermostat_mode, elk_fan_mode = HASS_TO_ELK_FAN_MODES[fan_mode]

View File

@ -189,18 +189,5 @@
"name": "Sensor zone trigger",
"description": "Triggers zone."
}
},
"issues": {
"migrate_aux_heat": {
"title": "Migration of Elk-M1 set_aux_heat action",
"fix_flow": {
"step": {
"confirm": {
"description": "The Elk-M1 `set_aux_heat` action has been migrated. A new emergency heat switch entity is available for each thermostat.\n\nUpdate any automations to use the new emergency heat switch entity. When this is done, select **Submit** to fix this issue.",
"title": "[%key:component::elkm1::issues::migrate_aux_heat::title%]"
}
}
}
}
}
}