From a885ceefa28f2b9f1bd6c1050e0d3f6886f20ac7 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 27 Jun 2023 20:58:03 +0200 Subject: [PATCH] Add entity translations to Gios (#95403) --- homeassistant/components/gios/sensor.py | 5 ----- homeassistant/components/gios/strings.json | 15 --------------- 2 files changed, 20 deletions(-) diff --git a/homeassistant/components/gios/sensor.py b/homeassistant/components/gios/sensor.py index f078cc074e9..64119436230 100644 --- a/homeassistant/components/gios/sensor.py +++ b/homeassistant/components/gios/sensor.py @@ -91,7 +91,6 @@ SENSOR_TYPES: tuple[GiosSensorEntityDescription, ...] = ( device_class=SensorDeviceClass.NITROGEN_DIOXIDE, native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, state_class=SensorStateClass.MEASUREMENT, - translation_key="no2", ), GiosSensorEntityDescription( key=ATTR_NO2, @@ -109,7 +108,6 @@ SENSOR_TYPES: tuple[GiosSensorEntityDescription, ...] = ( device_class=SensorDeviceClass.OZONE, native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, state_class=SensorStateClass.MEASUREMENT, - translation_key="o3", ), GiosSensorEntityDescription( key=ATTR_O3, @@ -127,7 +125,6 @@ SENSOR_TYPES: tuple[GiosSensorEntityDescription, ...] = ( device_class=SensorDeviceClass.PM10, native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, state_class=SensorStateClass.MEASUREMENT, - translation_key="pm10", ), GiosSensorEntityDescription( key=ATTR_PM10, @@ -145,7 +142,6 @@ SENSOR_TYPES: tuple[GiosSensorEntityDescription, ...] = ( device_class=SensorDeviceClass.PM25, native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, state_class=SensorStateClass.MEASUREMENT, - translation_key="pm25", ), GiosSensorEntityDescription( key=ATTR_PM25, @@ -163,7 +159,6 @@ SENSOR_TYPES: tuple[GiosSensorEntityDescription, ...] = ( device_class=SensorDeviceClass.SULPHUR_DIOXIDE, native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, state_class=SensorStateClass.MEASUREMENT, - translation_key="so2", ), GiosSensorEntityDescription( key=ATTR_SO2, diff --git a/homeassistant/components/gios/strings.json b/homeassistant/components/gios/strings.json index 5387c043fc3..ee0f50ef40c 100644 --- a/homeassistant/components/gios/strings.json +++ b/homeassistant/components/gios/strings.json @@ -42,9 +42,6 @@ "co": { "name": "[%key:component::sensor::entity_component::carbon_monoxide::name%]" }, - "no2": { - "name": "[%key:component::sensor::entity_component::nitrogen_dioxide::name%]" - }, "no2_index": { "name": "Nitrogen dioxide index", "state": { @@ -56,9 +53,6 @@ "very_good": "[%key:component::gios::entity::sensor::aqi::state::very_good%]" } }, - "o3": { - "name": "[%key:component::sensor::entity_component::ozone::name%]" - }, "o3_index": { "name": "Ozone index", "state": { @@ -70,9 +64,6 @@ "very_good": "[%key:component::gios::entity::sensor::aqi::state::very_good%]" } }, - "pm10": { - "name": "[%key:component::sensor::entity_component::pm10::name%]" - }, "pm10_index": { "name": "PM10 index", "state": { @@ -84,9 +75,6 @@ "very_good": "[%key:component::gios::entity::sensor::aqi::state::very_good%]" } }, - "pm25": { - "name": "[%key:component::sensor::entity_component::pm25::name%]" - }, "pm25_index": { "name": "PM2.5 index", "state": { @@ -98,9 +86,6 @@ "very_good": "[%key:component::gios::entity::sensor::aqi::state::very_good%]" } }, - "so2": { - "name": "[%key:component::sensor::entity_component::sulphur_dioxide::name%]" - }, "so2_index": { "name": "Sulphur dioxide index", "state": {