@@ -211,26 +211,6 @@ class CustomFanRow extends Polymer.Element {
211211
212212
213213 if ( revButtons ) {
214- this . setProperties ( {
215- _stateObj : stateObj ,
216- _leftState : high == 'on' ,
217- _midLeftState : med == 'on' ,
218- _midRightState : low == 'on' ,
219- _rightState : offstate == 'on' ,
220- _leftColor : hicolor ,
221- _midLeftColor : medcolor ,
222- _midRightColor : lowcolor ,
223- _rightColor : offcolor ,
224- _leftText : hitext ,
225- _midLeftText : medtext ,
226- _midRightText : lowtext ,
227- _rightText : offtext ,
228- _leftName : hiname ,
229- _midLeftName : medname ,
230- _midRightName : lowname ,
231- _rightName : offname ,
232- } ) ;
233- } else {
234214 this . setProperties ( {
235215 _stateObj : stateObj ,
236216 _leftState : offstate == 'on' ,
@@ -250,6 +230,26 @@ class CustomFanRow extends Polymer.Element {
250230 _midRightName : medname ,
251231 _rightName : hiname ,
252232 } ) ;
233+ } else {
234+ this . setProperties ( {
235+ _stateObj : stateObj ,
236+ _leftState : high == 'on' ,
237+ _midLeftState : med == 'on' ,
238+ _midRightState : low == 'on' ,
239+ _rightState : offstate == 'on' ,
240+ _leftColor : hicolor ,
241+ _midLeftColor : medcolor ,
242+ _midRightColor : lowcolor ,
243+ _rightColor : offcolor ,
244+ _leftText : hitext ,
245+ _midLeftText : medtext ,
246+ _midRightText : lowtext ,
247+ _rightText : offtext ,
248+ _leftName : hiname ,
249+ _midLeftName : medname ,
250+ _midRightName : lowname ,
251+ _rightName : offname ,
252+ } ) ;
253253 }
254254 }
255255
0 commit comments