Skip to content

Commit

Permalink
Fixed homebridge startup failed when robot does not support zone clea…
Browse files Browse the repository at this point in the history
…ning
  • Loading branch information
naofireblade committed Jul 20, 2019
1 parent f795781 commit db8305b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,12 @@

## 0.5.2

* Added schema file for use with homebridge-config-ui-x
* 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
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit db8305b

Please sign in to comment.