diff --git a/dist/fan-control-entity-row.js b/dist/fan-control-entity-row.js index 0d07823..49a4356 100644 --- a/dist/fan-control-entity-row.js +++ b/dist/fan-control-entity-row.js @@ -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', @@ -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, + }); } }