homebridge-weather
Advanced tools
Comparing version 1.6.2 to 1.6.3
@@ -153,3 +153,3 @@ "use strict"; | ||
returnTempFromCache: function () { | ||
var temperature = 0; | ||
var temperature; | ||
if (this.cachedWeatherObj) { | ||
@@ -169,3 +169,3 @@ if (this.type === "min") { | ||
returnHumFromCache: function () { | ||
var humidity = 0; | ||
var humidity; | ||
if (this.cachedWeatherObj && this.cachedWeatherObj["main"]) { | ||
@@ -207,3 +207,3 @@ humidity = parseFloat(this.cachedWeatherObj["main"]["humidity"]); | ||
addHistory: function (temperature, humidity) { | ||
if (this.enableHistory && this.pollingInterval > 0 && this.fakeGateHistoryService && (temperature || humidity) && (temperature > 0 || humidity > 0)) { | ||
if (this.enableHistory && this.pollingInterval > 0 && this.fakeGateHistoryService && (temperature || humidity)) { | ||
this.fakeGateHistoryService.addEntry({ | ||
@@ -210,0 +210,0 @@ time: new Date().getTime() / 1000, |
{ | ||
"name": "homebridge-weather", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"description": "A homebridge temperature sensor for displaying the weather at your current location.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
18720