From fa25b0d6a5f24e3c1e108746d7f775ca46dbce9a Mon Sep 17 00:00:00 2001 From: Arne Date: Thu, 26 Sep 2019 09:08:35 +0200 Subject: [PATCH] Bumped version to v0.7.0-beta.10 --- accessories/neatoVacuumRobot.js | 2 +- index.js | 48 ++++++++++++++++----------------- package.json | 2 +- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/accessories/neatoVacuumRobot.js b/accessories/neatoVacuumRobot.js index d419115..e229647 100644 --- a/accessories/neatoVacuumRobot.js +++ b/accessories/neatoVacuumRobot.js @@ -590,7 +590,7 @@ NeatoVacuumRobotAccessory.prototype = { { this.platform.updateRobot(this.robot._serial, () => { - debug(this.name + ": Spot repeat is " + (this.robot.spotRepeat ? 'ON' : 'OFF')); + debug(this.name + ": Spot repeat is " + (this.robot.spotRepeat ? 'ON'.brightGreen : 'OFF'.red)); callback(false, this.robot.spotRepeat); }); }, diff --git a/index.js b/index.js index 68987bf..8aff74b 100644 --- a/index.js +++ b/index.js @@ -71,31 +71,31 @@ NeatoVacuumRobotPlatform.prototype = { robot.roomAccessories = []; // For testing purposes only - robot.boundary = {name: "Testroom", id: "1"}; - let roomAccessory = new NeatoVacuumRobotAccessory(this, robot); - accessories.push(roomAccessory); - robot.roomAccessories.push(roomAccessory); + // robot.boundary = {name: "Testroom", id: "1"}; + // let roomAccessory = new NeatoVacuumRobotAccessory(this, robot); + // accessories.push(roomAccessory); + // robot.roomAccessories.push(roomAccessory); - // if (robot.device.maps) - // { - // robot.device.maps.forEach((map) => - // { - // if (map.boundaries) - // { - // map.boundaries.forEach((boundary) => - // { - // if (boundary.type === "polygon") - // { - // robot.boundary = boundary; - // let roomAccessory = new NeatoVacuumRobotAccessory(this, robot); - // accessories.push(roomAccessory); - // - // robot.roomAccessories.push(roomAccessory); - // } - // }) - // } - // }) - // } + if (robot.device.maps) + { + robot.device.maps.forEach((map) => + { + if (map.boundaries) + { + map.boundaries.forEach((boundary) => + { + if (boundary.type === "polygon") + { + robot.boundary = boundary; + let roomAccessory = new NeatoVacuumRobotAccessory(this, robot); + accessories.push(roomAccessory); + + robot.roomAccessories.push(roomAccessory); + } + }) + } + }) + } }); callback(accessories); }); diff --git a/package.json b/package.json index f6569fe..00f0716 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-neato", - "version": "0.7.0-beta.9", + "version": "0.7.0-beta.10", "description": "A Neato vacuum robot plugin for homebridge.", "license": "MIT", "keywords": [