From 8626b0e0930f57f398a5b9de56666240659570a5 Mon Sep 17 00:00:00 2001 From: veeck Date: Tue, 12 Aug 2025 13:44:02 +0200 Subject: [PATCH 1/2] fix check for precipitationAmount --- modules/default/weather/providers/weathergov.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default/weather/providers/weathergov.js b/modules/default/weather/providers/weathergov.js index d8fa621a85..602e409c70 100644 --- a/modules/default/weather/providers/weathergov.js +++ b/modules/default/weather/providers/weathergov.js @@ -218,7 +218,7 @@ WeatherProvider.register("weathergov", { currentWeather.minTemperature = currentWeatherData.minTemperatureLast24Hours.value; currentWeather.maxTemperature = currentWeatherData.maxTemperatureLast24Hours.value; currentWeather.humidity = Math.round(currentWeatherData.relativeHumidity.value); - currentWeather.precipitationAmount = currentWeatherData.precipitationLastHour.value ? currentWeatherData.precipitationLastHour.value : currentWeatherData.precipitationLast3Hours.value; + currentWeather.precipitationAmount = currentWeatherData.precipitationLastHour?.value ?? currentWeatherData.precipitationLast3Hours?.value; if (currentWeatherData.heatIndex.value !== null) { currentWeather.feelsLikeTemp = currentWeatherData.heatIndex.value; } else if (currentWeatherData.windChill.value !== null) { From b44b1a13255ae1615bf39ac3de28e2116eb7fa63 Mon Sep 17 00:00:00 2001 From: veeck Date: Tue, 12 Aug 2025 13:46:39 +0200 Subject: [PATCH 2/2] update CHANGELOG --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e10285de87..376b7234d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,8 +29,9 @@ Thanks to: @dathbe. ### Fixed -- [calendar] Fixed broken unittest that only broke at 1st of july and 1st of january (#3830) +- [calendar] Fixed broken unittest that only broke on the 1st of July and 1st of january (#3830) - [clock] Fixed missing icons when no other modules with icons is loaded (#3834) +- [weather] Fixed handling of empty values in weathergov providers handling of precipitationAmount (#3859) ## [2.32.0] - 2025-07-01