Fix: check if temperature is defined (0°)

This commit is contained in:
Tino Ziegler 2017-01-18 15:56:12 +01:00
parent 8010e6220d
commit 93c07b2b1e

View File

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