Skip to content

Commit

Permalink
Update fan-percent-button-row.js
Browse files Browse the repository at this point in the history
Bugfix for custom percentages
  • Loading branch information
finity69x2 authored Oct 16, 2021
1 parent 6d4c38c commit 5ad1cf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/fan-percent-button-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ class CustomFanPercentRow extends Polymer.Element {
}
}
} else {
offSetpoint = parseInt(OffSetpoint);
lowSetpoint = parseInt(LowSetpoint);
medSetpoint = parseInt(MedSetpoint);
hiSetpoint = parseInt(HiSetpoint);
offSetpoint = 0 //parseInt(OffSetpoint);
lowSetpoint = 33 //parseInt(LowSetpoint);
medSetpoint = 66 //parseInt(MedSetpoint);
hiSetpoint = 100 //parseInt(HiSetpoint);
if (stateObj && stateObj.attributes) {
if (stateObj.state == 'on' && stateObj.attributes.percentage >= 17 && stateObj.attributes.percentage <= 50) {
low = 'on';
Expand Down

0 comments on commit 5ad1cf9

Please sign in to comment.