From 93c07b2b1e2e4218d17ceead43b63509b6beb7e0 Mon Sep 17 00:00:00 2001 From: Tino Ziegler Date: Wed, 18 Jan 2017 15:56:12 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20check=20if=20temperature=20is=20defined?= =?UTF-8?q?=20(0=C2=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/default/currentweather/currentweather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index e92550ea..37b054a9 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -296,7 +296,7 @@ Module.register("currentweather",{ */ processWeather: function(data) { - if (!data || !data.main || !data.main.temp) { + if (!data || !data.main || typeof data.main.temp === 'undefined') { // Did not receive usable new data. // Maybe this needs a better check? return;