diff --git a/README.md b/README.md index 73bfd2a..5e00b75 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This is a plugin for [homebridge](https://github.com/nfarina/homebridge) to cont Feel free to leave any feedback [here](https://github.com/naofireblade/homebridge-neato/issues). -If you update from a previous version 0.3.x you have to adapt your config. +If you update from a previous version 0.3.x you have to adapt your config (plugin is now a platform). ## Features diff --git a/index.js b/index.js index 422aaea..50874ac 100644 --- a/index.js +++ b/index.js @@ -303,6 +303,10 @@ NeatoVacuumRobotAccessory.prototype = { else { debug(this.name + ": Update (online)"); this.robot.getState(function (error, result) { + if (error) { + that.log.error("Error while updating robot state."); + that.log.error(error); + } that.lastUpdate = new Date(); callback(); });