diff --git a/HISTORY.md b/HISTORY.md index 159c424..5ca9f2a 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,8 @@ ## version history +### 0.4.2 +- hopefully fixed a problem which caused the low-battery warning to persist even after replacing the module's battery (Issue #21) + ### 0.4.1 - setting min value for co2 for investigating history gaps - anti-crash-fix for netatmo's current API problems diff --git a/accessory/eveatmo-rain-accessory.js b/accessory/eveatmo-rain-accessory.js index 57ca242..294cfea 100644 --- a/accessory/eveatmo-rain-accessory.js +++ b/accessory/eveatmo-rain-accessory.js @@ -96,7 +96,7 @@ module.exports = function(pHomebridge) { this.batteryPercent = weatherData.batteryPercent; dataChanged = true; } - if (weatherData.lowBattery && this.lowBattery != weatherData.lowBattery) { + if (this.lowBattery != weatherData.lowBattery) { this.lowBattery = weatherData.lowBattery; dataChanged = true; } diff --git a/accessory/eveatmo-room-accessory.js b/accessory/eveatmo-room-accessory.js index aac83c5..86e82f6 100644 --- a/accessory/eveatmo-room-accessory.js +++ b/accessory/eveatmo-room-accessory.js @@ -142,7 +142,7 @@ module.exports = function(pHomebridge) { this.batteryPercent = weatherData.batteryPercent; dataChanged = true; } - if (weatherData.lowBattery && this.lowBattery != weatherData.lowBattery) { + if (this.lowBattery != weatherData.lowBattery) { this.lowBattery = weatherData.lowBattery; dataChanged = true; } diff --git a/accessory/eveatmo-weather-accessory.js b/accessory/eveatmo-weather-accessory.js index 51e4fda..bfb7844 100644 --- a/accessory/eveatmo-weather-accessory.js +++ b/accessory/eveatmo-weather-accessory.js @@ -139,7 +139,7 @@ module.exports = function(pHomebridge) { this.batteryPercent = weatherData.batteryPercent; dataChanged = true; } - if (weatherData.lowBattery && this.lowBattery != weatherData.lowBattery) { + if (this.lowBattery != weatherData.lowBattery) { this.lowBattery = weatherData.lowBattery; dataChanged = true; } diff --git a/accessory/eveatmo-wind-accessory.js b/accessory/eveatmo-wind-accessory.js index 4f16203..80111f3 100644 --- a/accessory/eveatmo-wind-accessory.js +++ b/accessory/eveatmo-wind-accessory.js @@ -96,7 +96,7 @@ module.exports = function(pHomebridge) { this.batteryPercent = weatherData.batteryPercent; dataChanged = true; } - if (weatherData.lowBattery && this.lowBattery != weatherData.lowBattery) { + if (this.lowBattery != weatherData.lowBattery) { this.lowBattery = weatherData.lowBattery; dataChanged = true; } diff --git a/package.json b/package.json index a6ba525..869558a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-eveatmo", - "version": "0.4.1", + "version": "0.4.2", "description": "Homebridge plugin which adds a Netatmo weatherstation as HomeKit device and tries to act like Elgato Eve Room/Weather", "license": "ISC", "keywords": [