Skip to content

Commit

Permalink
fix error in default button order
Browse files Browse the repository at this point in the history
  • Loading branch information
finity69x2 authored Aug 14, 2020
1 parent 73ec32c commit 3a97a2f
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions dist/fan-control-entity-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,26 +211,6 @@ class CustomFanRow extends Polymer.Element {


if (revButtons) {
this.setProperties({
_stateObj: stateObj,
_leftState: high == 'on',
_midLeftState: med == 'on',
_midRightState: low == 'on',
_rightState: offstate == 'on',
_leftColor: hicolor,
_midLeftColor: medcolor,
_midRightColor: lowcolor,
_rightColor: offcolor,
_leftText: hitext,
_midLeftText: medtext,
_midRightText: lowtext,
_rightText: offtext,
_leftName: hiname,
_midLeftName: medname,
_midRightName: lowname,
_rightName: offname,
});
} else {
this.setProperties({
_stateObj: stateObj,
_leftState: offstate == 'on',
Expand All @@ -250,6 +230,26 @@ class CustomFanRow extends Polymer.Element {
_midRightName: medname,
_rightName: hiname,
});
} else {
this.setProperties({
_stateObj: stateObj,
_leftState: high == 'on',
_midLeftState: med == 'on',
_midRightState: low == 'on',
_rightState: offstate == 'on',
_leftColor: hicolor,
_midLeftColor: medcolor,
_midRightColor: lowcolor,
_rightColor: offcolor,
_leftText: hitext,
_midLeftText: medtext,
_midRightText: lowtext,
_rightText: offtext,
_leftName: hiname,
_midLeftName: medname,
_midRightName: lowname,
_rightName: offname,
});
}
}

Expand Down

0 comments on commit 3a97a2f

Please sign in to comment.