From 857af55e99165897c1eca191ade8440b189dc343 Mon Sep 17 00:00:00 2001 From: naofireblade Date: Tue, 25 Jul 2017 08:52:17 +0200 Subject: [PATCH] Version 0.4.3 * Fixed config parameter to disable switches/sensors not optional --- CHANGELOG.md | 6 +++++- index.js | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89fef43..d6f277d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,4 +45,8 @@ ## 0.4.2 -* Added config parameter to disable switches/sensors \ No newline at end of file +* Added config parameter to disable switches/sensors + +## 0.4.4 + +* Fixed config parameter to disable switches/sensors not optional \ No newline at end of file diff --git a/index.js b/index.js index 6cc55a6..b966954 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ function NeatoVacuumRobotPlatform(log, config) { this.serial = "1-3-3-7"; this.email = config['email']; this.password = config['password']; - this.hiddenServices = config['disabled']; + this.hiddenServices = ('disabled' in config ? config['disabled'] : ''); this.careNavigation = ('extraCareNavigation' in config && config['extraCareNavigation'] ? 2 : 1); debug("Extra Care Navigation: " + this.careNavigation); diff --git a/package.json b/package.json index de2615c..1fad519 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-neato", - "version": "0.4.2", + "version": "0.4.4", "description": "A Neato vacuum robot plugin for homebridge.", "license": "MIT", "keywords": [