From c2da664bcce09b9630147429cc6e1a0382e77f44 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 6 Dec 2022 08:59:48 +0100 Subject: [PATCH] Migrate Sensibo translations (#83310) --- homeassistant/components/sensibo/sensor.py | 4 ++-- homeassistant/components/sensibo/strings.json | 17 +++++++++++++++++ .../components/sensibo/strings.sensor.json | 13 ------------- .../components/sensibo/translations/en.json | 17 +++++++++++++++++ 4 files changed, 36 insertions(+), 15 deletions(-) delete mode 100644 homeassistant/components/sensibo/strings.sensor.json diff --git a/homeassistant/components/sensibo/sensor.py b/homeassistant/components/sensibo/sensor.py index ad5286a02c2..6ff622f7275 100644 --- a/homeassistant/components/sensibo/sensor.py +++ b/homeassistant/components/sensibo/sensor.py @@ -131,7 +131,7 @@ PURE_SENSOR_TYPES: tuple[SensiboDeviceSensorEntityDescription, ...] = ( icon="mdi:air-filter", value_fn=lambda data: data.pure_sensitivity, extra_fn=None, - device_class="sensibo__sensitivity", + translation_key="sensitivity", ), FILTER_LAST_RESET_DESCRIPTION, ) @@ -174,7 +174,7 @@ DEVICE_SENSOR_TYPES: tuple[SensiboDeviceSensorEntityDescription, ...] = ( ), SensiboDeviceSensorEntityDescription( key="climate_react_type", - device_class="sensibo__smart_type", + translation_key="smart_type", name="Climate React type", value_fn=lambda data: data.smart_type, extra_fn=None, diff --git a/homeassistant/components/sensibo/strings.json b/homeassistant/components/sensibo/strings.json index 2af4e6043cb..21830ff913c 100644 --- a/homeassistant/components/sensibo/strings.json +++ b/homeassistant/components/sensibo/strings.json @@ -29,5 +29,22 @@ } } } + }, + "entity": { + "sensor": { + "sensitivity": { + "state": { + "n": "Normal", + "s": "Sensitive" + } + }, + "smart_type": { + "state": { + "temperature": "Temperature", + "feelslike": "Feels like", + "humidity": "Humidity" + } + } + } } } diff --git a/homeassistant/components/sensibo/strings.sensor.json b/homeassistant/components/sensibo/strings.sensor.json deleted file mode 100644 index 6226fd26a0f..00000000000 --- a/homeassistant/components/sensibo/strings.sensor.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "state": { - "sensibo__sensitivity": { - "n": "Normal", - "s": "Sensitive" - }, - "sensibo__smart_type": { - "temperature": "Temperature", - "feelslike": "Feels like", - "humidity": "Humidity" - } - } -} diff --git a/homeassistant/components/sensibo/translations/en.json b/homeassistant/components/sensibo/translations/en.json index 3b73823a2f7..14a399f63a5 100644 --- a/homeassistant/components/sensibo/translations/en.json +++ b/homeassistant/components/sensibo/translations/en.json @@ -29,5 +29,22 @@ } } } + }, + "entity": { + "sensor": { + "sensitivity": { + "state": { + "n": "Normal", + "s": "Sensitive" + } + }, + "smart_type": { + "state": { + "feelslike": "Feels like", + "humidity": "Humidity", + "temperature": "Temperature" + } + } + } } } \ No newline at end of file