From 6111fb38a7397661d16536a05de1357a843ce7d0 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 6 Oct 2022 22:16:41 +0200 Subject: [PATCH] Add translations to Plugwise regulation mode (#79597) --- homeassistant/components/plugwise/select.py | 1 + .../components/plugwise/strings.select.json | 11 ++++++++++ .../components/plugwise/translations/en.json | 22 ------------------- .../plugwise/translations/select.en.json | 11 ++++++++++ 4 files changed, 23 insertions(+), 22 deletions(-) create mode 100644 homeassistant/components/plugwise/strings.select.json create mode 100644 homeassistant/components/plugwise/translations/select.en.json diff --git a/homeassistant/components/plugwise/select.py b/homeassistant/components/plugwise/select.py index 989f56adcf3..a6f49380678 100644 --- a/homeassistant/components/plugwise/select.py +++ b/homeassistant/components/plugwise/select.py @@ -52,6 +52,7 @@ SELECT_TYPES = ( command=lambda api, loc, opt: api.set_regulation_mode(opt), current_option_key="regulation_mode", options_key="regulation_modes", + device_class="plugwise__regulation_mode", ), ) diff --git a/homeassistant/components/plugwise/strings.select.json b/homeassistant/components/plugwise/strings.select.json new file mode 100644 index 00000000000..1c278f44315 --- /dev/null +++ b/homeassistant/components/plugwise/strings.select.json @@ -0,0 +1,11 @@ +{ + "state": { + "plugwise__regulation_mode": { + "bleeding_cold": "Bleeding cold", + "bleeding_hot": "Bleeding hot", + "cooling": "Cooling", + "heating": "Heating", + "off": "Off" + } + } +} diff --git a/homeassistant/components/plugwise/translations/en.json b/homeassistant/components/plugwise/translations/en.json index cd10502d0c3..aa5a318bbff 100644 --- a/homeassistant/components/plugwise/translations/en.json +++ b/homeassistant/components/plugwise/translations/en.json @@ -10,11 +10,9 @@ "invalid_setup": "Add your Adam instead of your Anna, see the Home Assistant Plugwise integration documentation for more information", "unknown": "Unexpected error" }, - "flow_title": "{name}", "step": { "user": { "data": { - "flow_type": "Connection type", "host": "IP Address", "password": "Smile ID", "port": "Port", @@ -22,26 +20,6 @@ }, "description": "Please enter", "title": "Connect to the Smile" - }, - "user_gateway": { - "data": { - "host": "IP Address", - "password": "Smile ID", - "port": "Port", - "username": "Smile Username" - }, - "description": "Please enter", - "title": "Connect to the Smile" - } - } - }, - "options": { - "step": { - "init": { - "data": { - "scan_interval": "Scan Interval (seconds)" - }, - "description": "Adjust Plugwise Options" } } } diff --git a/homeassistant/components/plugwise/translations/select.en.json b/homeassistant/components/plugwise/translations/select.en.json new file mode 100644 index 00000000000..b71301ba047 --- /dev/null +++ b/homeassistant/components/plugwise/translations/select.en.json @@ -0,0 +1,11 @@ +{ + "state": { + "plugwise__regulation_mode": { + "bleeding_cold": "Bleeding cold", + "bleeding_hot": "Bleeding hot", + "cooling": "Cooling", + "heating": "Heating", + "off": "Off" + } + } +} \ No newline at end of file