From 9cbf33153365001b11c16868e4a91682973c8f13 Mon Sep 17 00:00:00 2001 From: fwitte Date: Sat, 5 Jan 2019 16:56:47 +0100 Subject: [PATCH] fixed typo in daily data fetcher --- modules/default/weather/providers/openweathermap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default/weather/providers/openweathermap.js b/modules/default/weather/providers/openweathermap.js index 53eca7df..f5d931c5 100644 --- a/modules/default/weather/providers/openweathermap.js +++ b/modules/default/weather/providers/openweathermap.js @@ -185,7 +185,7 @@ WeatherProvider.register("openweathermap", { if (forecast.hasOwnProperty("rain")) { if (this.config.units === "imperial" && !isNaN(forecast.rain)) { weather.rain = forecast.rain / 25.4; - } else if (!isNaN(forecast.rain["3h"])){ + } else if (!isNaN(forecast.rain)){ weather.rain = forecast.rain; } else { weather.rain = 0;