Set an empty array if there are no robots on the account
This commit is contained in:
parent
9e9dd80547
commit
7fef07df0a
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