diff --git a/homeassistant/components/honeywell/climate.py b/homeassistant/components/honeywell/climate.py index 2f06dd1cfbe..803ca1da1aa 100644 --- a/homeassistant/components/honeywell/climate.py +++ b/homeassistant/components/honeywell/climate.py @@ -51,7 +51,7 @@ ATTR_FAN_ACTION = "fan_action" ATTR_PERMANENT_HOLD = "permanent_hold" -PRESET_HOLD = "Hold" +PRESET_HOLD = "hold" HEATING_MODES = {"heat", "emheat", "auto"} COOLING_MODES = {"cool", "auto"} @@ -142,6 +142,7 @@ class HoneywellUSThermostat(ClimateEntity): _attr_has_entity_name = True _attr_name = None + _attr_translation_key = "honeywell" def __init__( self, @@ -303,7 +304,7 @@ class HoneywellUSThermostat(ClimateEntity): if self._is_permanent_hold(): return PRESET_HOLD - return None + return PRESET_NONE @property def is_aux_heat(self) -> bool | None: diff --git a/homeassistant/components/honeywell/strings.json b/homeassistant/components/honeywell/strings.json index b0cd2a52c1b..6f855828e01 100644 --- a/homeassistant/components/honeywell/strings.json +++ b/homeassistant/components/honeywell/strings.json @@ -40,6 +40,19 @@ "outdoor_humidity": { "name": "Outdoor humidity" } + }, + "climate": { + "honeywell": { + "state_attributes": { + "preset_mode": { + "state": { + "hold": "Hold", + "away": "[%key:component::climate::entity_component::_::state_attributes::preset_mode::state::away%]", + "none": "[%key:component::climate::entity_component::_::state_attributes::preset_mode::state::none%]" + } + } + } + } } } } diff --git a/tests/components/honeywell/snapshots/test_climate.ambr b/tests/components/honeywell/snapshots/test_climate.ambr index 4f7d8fe1308..d589cbfbc9e 100644 --- a/tests/components/honeywell/snapshots/test_climate.ambr +++ b/tests/components/honeywell/snapshots/test_climate.ambr @@ -24,11 +24,11 @@ 'min_humidity': 30, 'min_temp': -13.9, 'permanent_hold': False, - 'preset_mode': None, + 'preset_mode': 'none', 'preset_modes': list([ 'none', 'away', - 'Hold', + 'hold', ]), 'supported_features': , 'target_temp_high': None, diff --git a/tests/components/honeywell/test_climate.py b/tests/components/honeywell/test_climate.py index 9c73e88c3df..743689da43d 100644 --- a/tests/components/honeywell/test_climate.py +++ b/tests/components/honeywell/test_climate.py @@ -28,7 +28,7 @@ from homeassistant.components.climate import ( SERVICE_SET_TEMPERATURE, HVACMode, ) -from homeassistant.components.honeywell.climate import RETRY, SCAN_INTERVAL +from homeassistant.components.honeywell.climate import PRESET_HOLD, RETRY, SCAN_INTERVAL from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_TEMPERATURE, @@ -46,7 +46,6 @@ from . import init_integration, reset_mock from tests.common import async_fire_time_changed FAN_ACTION = "fan_action" -PRESET_HOLD = "Hold" async def test_no_thermostat_options(