fixed typo in daily data fetcher

This commit is contained in:
fwitte 2019-01-05 16:56:47 +01:00
parent 77640714cc
commit 9cbf331533

View File

@ -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;