From 3a97a2f7d2a395f117c986c078bdd4e2d87597e2 Mon Sep 17 00:00:00 2001 From: finity69x2 <32221243+finity69x2@users.noreply.github.com> Date: Fri, 14 Aug 2020 08:47:10 -0400 Subject: [PATCH] fix error in default button order --- dist/fan-control-entity-row.js | 40 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) 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, + }); } }