Skip to content

Commit

Permalink
Made the method refreshCharacteristicUI compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwi-cam committed Sep 26, 2024
1 parent 1c2d6e6 commit eefcc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/serviceManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ServiceManager {

refreshCharacteristicUI (characteristic) {
//Historically, we refreshed the UI using getValue(). This is being depricated and replaced by the parameter value, which unfortunately does not refresh the UI, instaed use updateCharacteristic(characteristic, value)
this.service.getCharacteristic(characteristic).value;
this.updateCharacteristic(characteristic, this.service.getCharacteristic(characteristic).value);
}

// Convenience
Expand Down

0 comments on commit eefcc15

Please sign in to comment.