Added errorlog while refreshing robot state

This commit is contained in:
naofireblade 2017-10-15 19:34:02 +02:00
parent 88f217e2b1
commit 89f6f233a5
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -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();
});