Fixed homebridge startup failed when robot does not support zone cleaning
This commit is contained in:
parent
f795781d2a
commit
db8305bbee
10
CHANGELOG.md
10
CHANGELOG.md
@ -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
index.js
4
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) {
|
||||
|
@ -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": [
|
||||
|
Loading…
Reference in New Issue
Block a user