Skip to content

Commit

Permalink
Merge pull request #12 from ghulands/fix_no_robots
Browse files Browse the repository at this point in the history
Set an empty array if there are no robots on the account
  • Loading branch information
naofireblade authored Mar 25, 2018
2 parents 9e9dd80 + 7fef07d commit 0de549d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ NeatoVacuumRobotPlatform.prototype = {
else {
if (robots.length === 0) {
that.log.error("Successful login but no robots associated with your account.");
that.robots = [];
callback();
}
else {
Expand Down

0 comments on commit 0de549d

Please sign in to comment.