Set input_slider value after min,max,step. (#291)

This avoids clobbering it with the default values of min, max, and step. Fixes HA issues 7301 and 7232.
This commit is contained in:
Anton Sarukhanov 2017-05-23 17:01:45 -07:00 committed by Paulus Schoutsen
parent d1d412c69f
commit 7fbc5df9a0

View File

@ -60,11 +60,10 @@ Polymer({
}, },
stateObjectChanged: function (newVal) { stateObjectChanged: function (newVal) {
this.value = Number(newVal.state);
this.min = Number(newVal.attributes.min); this.min = Number(newVal.attributes.min);
this.max = Number(newVal.attributes.max); this.max = Number(newVal.attributes.max);
this.step = Number(newVal.attributes.step); this.step = Number(newVal.attributes.step);
this.value = Number(newVal.state);
}, },
selectedValueChanged: function () { selectedValueChanged: function () {