Add language to plugin via dict object

This commit is contained in:
Luis Riegger
2021-05-04 08:46:12 +02:00
parent 010e177306
commit bdb5807aeb
2 changed files with 56 additions and 13 deletions

View File

@@ -21,6 +21,7 @@ function NeatoVacuumRobotPlatform(log, config)
this.serial = "1-3-3-7";
this.email = config['email'];
this.password = config['password'];
this.language = config['language'];
this.hiddenServices = '';
this.hiddenServices = ('disabled' in config ? config['disabled'] : this.hiddenServices);
this.hiddenServices = ('hidden' in config ? config['hidden'] : this.hiddenServices);