Compare commits

..

2 Commits

Author SHA1 Message Date
Lukas Svoboda 908a60ade4
Merge pull request #61 from schizza/invalid_native_temp
Corrected temperature unit in outside_temp.
2025-03-11 17:40:28 +01:00
schizza 47143d9ac2 Corrected temperature unit in outside_temp.
Changes temperature unit from Celsius to Fahrenheit in the weather sensor descriptions.
2025-03-11 17:39:09 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,6 @@
"issue_tracker": "https://github.com/schizza/SWS-12500-custom-component/issues", "issue_tracker": "https://github.com/schizza/SWS-12500-custom-component/issues",
"requirements": [], "requirements": [],
"ssdp": [], "ssdp": [],
"version": "1.5.2", "version": "1.5.3",
"zeroconf": [] "zeroconf": []
} }

View File

@ -64,7 +64,7 @@ SENSOR_TYPES_WEATHER_API: tuple[WeatherSensorEntityDescription, ...] = (
), ),
WeatherSensorEntityDescription( WeatherSensorEntityDescription(
key=OUTSIDE_TEMP, key=OUTSIDE_TEMP,
native_unit_of_measurement=UnitOfTemperature.CELSIUS, native_unit_of_measurement=UnitOfTemperature.FAHRENHEIT,
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
icon="mdi:thermometer", icon="mdi:thermometer",
device_class=SensorDeviceClass.TEMPERATURE, device_class=SensorDeviceClass.TEMPERATURE,