diff --git a/accessories/neatVacuumRobot.js b/accessories/neatVacuumRobot.js index ff5e649..882a1e6 100644 --- a/accessories/neatVacuumRobot.js +++ b/accessories/neatVacuumRobot.js @@ -256,7 +256,7 @@ NeatoVacuumRobotAccessory.prototype = { }); }, - clean: function (callback, boundaryId) + clean: function (callback, boundary) { // Start automatic update while cleaning if (this.refresh === 'auto') diff --git a/index.js b/index.js index bc5a3a9..2c47494 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ "use strict"; -var inherits = require('util').inherits, +let inherits = require('util').inherits, debug = require('debug')('homebridge-neato'), botvac = require('node-botvac'), @@ -143,7 +143,7 @@ NeatoVacuumRobotPlatform.prototype = { map.boundaries = result.boundaries; } processedMapCount++; - if (processedMapCount == robot.maps.length) + if (processedMapCount === robot.maps.length) { updatedRobotCount++; if (updatedRobotCount === that.robots.length)