Skip to content

Commit

Permalink
Fix returning write response value (#105)
Browse files Browse the repository at this point in the history
Homebridge v1.3 will show a warning for returning a write response value if the characteristic itself doesn’t support it.

„SET handler returned write response value, though the characteristic doesn't support write response!“
  • Loading branch information
simont77 authored Nov 15, 2020
2 parents 5f5b95b + db05e0d commit 0ceee12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fakegato-history.js
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ module.exports = function (pHomebridge) {


setCurrentS2W1(val, callback) {
callback(null, val);
callback(null);
this.log.debug("Data request %s: %s", this.accessoryName, base64ToHex(val));
var valHex = base64ToHex(val);
var substring = valHex.substring(4, 12);
Expand All @@ -836,7 +836,7 @@ module.exports = function (pHomebridge) {

setCurrentS2W2(val, callback) {
this.log.debug("Clock adjust %s: %s", this.accessoryName, base64ToHex(val));
callback(null, val);
callback(null);
}

}
Expand Down

0 comments on commit 0ceee12

Please sign in to comment.