Skip to content

Commit

Permalink
fix window targetPosition value
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanh94 committed Jul 26, 2021
1 parent b6aadb5 commit 049828d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/window_covering_accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class WindowCoveringAccessory extends BaseAccessory {
// Characteristic.TargetPosition
if ( statusMap.code === 'percent_control') {
this.percentControlMap = statusMap
this.normalAsync(Characteristic.TargetPosition, 0, isRefesh);
this.normalAsync(Characteristic.TargetPosition, this.percentControlMap.value , isRefesh);
}

if ( statusMap.code === 'percent_state') {
Expand Down

0 comments on commit 049828d

Please sign in to comment.