Added errorlog while refreshing robot state
This commit is contained in:
parent
88f217e2b1
commit
89f6f233a5
@ -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).
|
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
|
## Features
|
||||||
|
|
||||||
|
4
index.js
4
index.js
@ -303,6 +303,10 @@ NeatoVacuumRobotAccessory.prototype = {
|
|||||||
else {
|
else {
|
||||||
debug(this.name + ": Update (online)");
|
debug(this.name + ": Update (online)");
|
||||||
this.robot.getState(function (error, result) {
|
this.robot.getState(function (error, result) {
|
||||||
|
if (error) {
|
||||||
|
that.log.error("Error while updating robot state.");
|
||||||
|
that.log.error(error);
|
||||||
|
}
|
||||||
that.lastUpdate = new Date();
|
that.lastUpdate = new Date();
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user