From 7fbc5df9a08ced3da3ed62bebe2cf6ebda12be75 Mon Sep 17 00:00:00 2001 From: Anton Sarukhanov Date: Tue, 23 May 2017 17:01:45 -0700 Subject: [PATCH] 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. --- src/state-summary/state-card-input_slider.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/state-summary/state-card-input_slider.html b/src/state-summary/state-card-input_slider.html index 038a6aa946..99a3d1ee2c 100644 --- a/src/state-summary/state-card-input_slider.html +++ b/src/state-summary/state-card-input_slider.html @@ -60,11 +60,10 @@ Polymer({ }, stateObjectChanged: function (newVal) { - this.value = Number(newVal.state); this.min = Number(newVal.attributes.min); this.max = Number(newVal.attributes.max); - this.step = Number(newVal.attributes.step); + this.value = Number(newVal.state); }, selectedValueChanged: function () {