Skip to content

Commit

Permalink
Added errorlog while refreshing robot state
Browse files Browse the repository at this point in the history
  • Loading branch information
naofireblade committed Oct 15, 2017
1 parent 88f217e commit 89f6f23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 89f6f23

Please sign in to comment.