From 47143d9ac2fee046714fcfe3053395a982048a33 Mon Sep 17 00:00:00 2001 From: schizza Date: Tue, 11 Mar 2025 17:39:09 +0100 Subject: [PATCH] Corrected temperature unit in outside_temp. Changes temperature unit from Celsius to Fahrenheit in the weather sensor descriptions. --- custom_components/sws12500/manifest.json | 2 +- custom_components/sws12500/sensors_weather.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/sws12500/manifest.json b/custom_components/sws12500/manifest.json index 6d2aa7e..c1aa0c4 100644 --- a/custom_components/sws12500/manifest.json +++ b/custom_components/sws12500/manifest.json @@ -10,6 +10,6 @@ "issue_tracker": "https://github.com/schizza/SWS-12500-custom-component/issues", "requirements": [], "ssdp": [], - "version": "1.5.2", + "version": "1.5.3", "zeroconf": [] } diff --git a/custom_components/sws12500/sensors_weather.py b/custom_components/sws12500/sensors_weather.py index a61750f..a70309c 100644 --- a/custom_components/sws12500/sensors_weather.py +++ b/custom_components/sws12500/sensors_weather.py @@ -64,7 +64,7 @@ SENSOR_TYPES_WEATHER_API: tuple[WeatherSensorEntityDescription, ...] = ( ), WeatherSensorEntityDescription( key=OUTSIDE_TEMP, - native_unit_of_measurement=UnitOfTemperature.CELSIUS, + native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT, state_class=SensorStateClass.MEASUREMENT, icon="mdi:thermometer", device_class=SensorDeviceClass.TEMPERATURE,