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": [