mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
[Lockitron] err could be null
This commit is contained in:
@@ -50,7 +50,7 @@ LockitronAccessory.prototype.setState = function(state, callback) {
|
||||
callback(null); // success
|
||||
}
|
||||
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);
|
||||
}
|
||||
}.bind(this));
|
||||
|
||||
Reference in New Issue
Block a user