Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
tuya-qiufeng committed Dec 28, 2023
2 parents e21c498 + bb899da commit 175af8a
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 @@ -107,7 +107,7 @@ class WindowCoveringAccessory extends BaseAccessory {
if (Characteristic.TargetPosition === name) {
code = this.percentControlMap.code;
value = hbParam;
if (code === 'position') {
if (code === 'position' && !Number.isFinite(value)) {
value = "" + hbParam;
}
}
Expand Down

0 comments on commit 175af8a

Please sign in to comment.