diff --git a/custom_components/weatherlink/sensor.py b/custom_components/weatherlink/sensor.py index 6a2c8fc..5aa777c 100644 --- a/custom_components/weatherlink/sensor.py +++ b/custom_components/weatherlink/sensor.py @@ -280,7 +280,7 @@ class WLSensorDescription(SensorEntityDescription): WLSensorDescription( key="SolarRadiation", tag=DataKey.SOLAR_RADIATION, - # translation_key="solar_radiation", + translation_key="solar_irradiance", device_class=SensorDeviceClass.IRRADIANCE, suggested_display_precision=0, native_unit_of_measurement=UnitOfIrradiance.WATTS_PER_SQUARE_METER, diff --git a/custom_components/weatherlink/translations/en.json b/custom_components/weatherlink/translations/en.json index 98bd6a0..d01ab73 100644 --- a/custom_components/weatherlink/translations/en.json +++ b/custom_components/weatherlink/translations/en.json @@ -117,6 +117,9 @@ "rain_today": { "name": "Rain today" }, + "solar_irradiance": { + "name": "Solar irradiance" + }, "solar_panel_volt": { "name": "Solar panel" },