Fix climate more-info aux toggle. (#265)

This commit is contained in:
Andrey 2017-04-24 02:15:39 +03:00 committed by Paulus Schoutsen
parent 3fdba35986
commit 1ef050e76d

View File

@ -226,9 +226,8 @@ Polymer({
},
stateObjChanged: function (newVal, oldVal) {
this.targetTemperatureSliderValue = newVal.attributes.temperature;
this.awayToggleChecked = newVal.attributes.away_mode === 'on';
this.auxheatToggleChecked = newVal.attributes.aux_heat === 'on';
this.auxToggleChecked = newVal.attributes.aux_heat === 'on';
if (newVal.attributes.fan_list) {
this.fanIndex = newVal.attributes.fan_list.indexOf(