From 281a7eaf3d3fdafdf1745567c50cb15b00b8a979 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 9 Oct 2026 12:13:38 +0200 Subject: [PATCH] Remove redundant wind direction translation key from INDI Allsky (#185325) --- homeassistant/components/indi_allsky/sensor.py | 2 -- homeassistant/components/indi_allsky/strings.json | 3 --- tests/components/indi_allsky/snapshots/test_sensor.ambr | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/homeassistant/components/indi_allsky/sensor.py b/homeassistant/components/indi_allsky/sensor.py index 5238d8685dd6..1ef4b1a3cca1 100644 --- a/homeassistant/components/indi_allsky/sensor.py +++ b/homeassistant/components/indi_allsky/sensor.py @@ -157,8 +157,6 @@ PREDEFINED_SENSOR_DESCRIPTIONS: tuple[IndiAllSkySensorEntityDescription, ...] = ), IndiAllSkySensorEntityDescription( key="wind_direction", - # pylint: disable-next=home-assistant-redundant-translation-key - translation_key="wind_direction", device_class=SensorDeviceClass.WIND_DIRECTION, native_unit_of_measurement=DEGREE, state_class=SensorStateClass.MEASUREMENT_ANGLE, diff --git a/homeassistant/components/indi_allsky/strings.json b/homeassistant/components/indi_allsky/strings.json index a1d425523d63..48c60847073e 100644 --- a/homeassistant/components/indi_allsky/strings.json +++ b/homeassistant/components/indi_allsky/strings.json @@ -108,9 +108,6 @@ }, "stars": { "name": "Stars" - }, - "wind_direction": { - "name": "Wind direction" } } }, diff --git a/tests/components/indi_allsky/snapshots/test_sensor.ambr b/tests/components/indi_allsky/snapshots/test_sensor.ambr index 9e00b67da4ea..bf2ae3b519d2 100644 --- a/tests/components/indi_allsky/snapshots/test_sensor.ambr +++ b/tests/components/indi_allsky/snapshots/test_sensor.ambr @@ -1005,7 +1005,7 @@ 'previous_unique_id': None, 'suggested_object_id': None, 'supported_features': 0, - 'translation_key': 'wind_direction', + 'translation_key': None, 'unique_id': '1234567890abcdef1234567890abcdef_wind_direction', 'unit_of_measurement': '°', })