Skip to content

Commit

Permalink
added support for clkg category
Browse files Browse the repository at this point in the history
  • Loading branch information
talrhv authored Dec 14, 2021
1 parent 995091d commit 5faf050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/window_covering_accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class WindowCoveringAccessory extends BaseAccessory {

_getCorrectPercent(value) {
var percent = value;
if (this.fullySituationMap && this.fullySituationMap.value === 'fully_open') {
if ((this.fullySituationMap && this.fullySituationMap.value === 'fully_open') || this.deviceConfig.category === 'clkg') {
return percent
} else {
percent = 100 - percent;
Expand Down Expand Up @@ -211,4 +211,4 @@ class WindowCoveringAccessory extends BaseAccessory {

}

module.exports = WindowCoveringAccessory;
module.exports = WindowCoveringAccessory;

0 comments on commit 5faf050

Please sign in to comment.