From a83d577b42d2b454287dc58d5d985d9d814641b9 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 27 Dec 2022 17:16:45 +0100 Subject: [PATCH] Add Plugwise climate preset translations (#84617) --- homeassistant/components/plugwise/climate.py | 3 ++- homeassistant/components/plugwise/strings.json | 15 +++++++++++++++ .../components/plugwise/translations/en.json | 15 +++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/plugwise/climate.py b/homeassistant/components/plugwise/climate.py index 83a38477975..833ce0d4b22 100644 --- a/homeassistant/components/plugwise/climate.py +++ b/homeassistant/components/plugwise/climate.py @@ -41,8 +41,9 @@ async def async_setup_entry( class PlugwiseClimateEntity(PlugwiseEntity, ClimateEntity): """Representation of an Plugwise thermostat.""" - _attr_temperature_unit = UnitOfTemperature.CELSIUS _attr_has_entity_name = True + _attr_temperature_unit = UnitOfTemperature.CELSIUS + _attr_translation_key = DOMAIN def __init__( self, diff --git a/homeassistant/components/plugwise/strings.json b/homeassistant/components/plugwise/strings.json index 36c200fa000..7d9f32f2651 100644 --- a/homeassistant/components/plugwise/strings.json +++ b/homeassistant/components/plugwise/strings.json @@ -26,6 +26,21 @@ } }, "entity": { + "climate": { + "plugwise": { + "state_attributes": { + "preset_mode": { + "state": { + "asleep": "Night", + "away": "Away", + "home": "Home", + "no_frost": "Anti-frost", + "vacation": "Vacation" + } + } + } + } + }, "select": { "dhw_mode": { "state": { diff --git a/homeassistant/components/plugwise/translations/en.json b/homeassistant/components/plugwise/translations/en.json index 92414ac3051..23cc292b1e3 100644 --- a/homeassistant/components/plugwise/translations/en.json +++ b/homeassistant/components/plugwise/translations/en.json @@ -26,6 +26,21 @@ } }, "entity": { + "climate": { + "plugwise": { + "state_attributes": { + "preset_mode": { + "state": { + "asleep": "Night", + "away": "Away", + "home": "Home", + "no_frost": "Anti-frost", + "vacation": "Vacation" + } + } + } + } + }, "select": { "dhw_mode": { "state": {