Merge pull request #12 from ghulands/fix_no_robots
Set an empty array if there are no robots on the account
This commit is contained in:
commit
0de549dd41
1
index.js
1
index.js
@ -65,6 +65,7 @@ NeatoVacuumRobotPlatform.prototype = {
|
|||||||
else {
|
else {
|
||||||
if (robots.length === 0) {
|
if (robots.length === 0) {
|
||||||
that.log.error("Successful login but no robots associated with your account.");
|
that.log.error("Successful login but no robots associated with your account.");
|
||||||
|
that.robots = [];
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user