From db8305bbee0f2e90307efa8758580cbd5e2f6df2 Mon Sep 17 00:00:00 2001 From: Arne Date: Sat, 20 Jul 2019 22:37:27 +0200 Subject: [PATCH] Fixed homebridge startup failed when robot does not support zone cleaning --- CHANGELOG.md | 10 +++++++++- index.js | 4 ++++ package.json | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1802d1..8675c43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,4 +82,12 @@ ## 0.5.2 -* Added schema file for use with homebridge-config-ui-x \ No newline at end of file +* Added schema file for use with homebridge-config-ui-x + +## 0.6.0 + +* Added support for zone cleaning + +## 0.6.1 + +* Fixed homebridge startup failed when robot does not support zone cleaning \ No newline at end of file diff --git a/index.js b/index.js index 9770c29..81f241c 100644 --- a/index.js +++ b/index.js @@ -89,6 +89,10 @@ NeatoVacuumRobotPlatform.prototype = { } robot.maps = result; let processedMapCount = 0; + if (robot.maps.length === 0) + { + callback(); + } robot.maps.forEach((map) => { robot.getMapBoundaries(map.id, (error, result) => { if (error) { diff --git a/package.json b/package.json index 59450fc..340dc7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-neato", - "version": "0.6.0", + "version": "0.6.1", "description": "A Neato vacuum robot plugin for homebridge.", "license": "MIT", "keywords": [