mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-05 14:23:12 +01:00
[Lockitron] err could be null
This commit is contained in:
@@ -50,7 +50,7 @@ LockitronAccessory.prototype.setState = function(state, callback) {
|
|||||||
callback(null); // success
|
callback(null); // success
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.log("Error '%s' setting lock state. Response: %s", err.message, body);
|
this.log("Error '%s' setting lock state. Response: %s", err, body);
|
||||||
callback(err);
|
callback(err);
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|||||||
Reference in New Issue
Block a user