From 7fef07df0a9a49083cae1384faefd7a8df55938d Mon Sep 17 00:00:00 2001 From: Greg Hulands Date: Sat, 24 Mar 2018 22:54:12 -0700 Subject: [PATCH] Set an empty array if there are no robots on the account --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 9f837eb..175996f 100644 --- a/index.js +++ b/index.js @@ -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 {