Version 0.4.3

* Fixed config parameter to disable switches/sensors not optional
This commit is contained in:
naofireblade
2017-07-25 08:52:17 +02:00
parent 20e0a9b909
commit 857af55e99
3 changed files with 7 additions and 3 deletions

View File

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