Fixed homebridge startup failed when robot does not support zone cleaning

This commit is contained in:
Arne
2019-07-20 22:37:27 +02:00
parent f795781d2a
commit db8305bbee
3 changed files with 14 additions and 2 deletions

View File

@@ -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) {