From 62e494bd04509e8d9b73354b0e17d3381955e0c8 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 28 Nov 2015 01:16:30 -0800 Subject: [PATCH] Thermostat set temperature in 0.5 steps --- src/more-infos/more-info-thermostat.html | 2 +- src/more-infos/more-info-thermostat.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/more-infos/more-info-thermostat.html b/src/more-infos/more-info-thermostat.html index 21da6548e5..199284b1ca 100644 --- a/src/more-infos/more-info-thermostat.html +++ b/src/more-infos/more-info-thermostat.html @@ -22,7 +22,7 @@
Target Temperature
diff --git a/src/more-infos/more-info-thermostat.js b/src/more-infos/more-info-thermostat.js index f3ffd08907..3a186e6071 100644 --- a/src/more-infos/more-info-thermostat.js +++ b/src/more-infos/more-info-thermostat.js @@ -44,13 +44,9 @@ export default new Polymer({ }, targetTemperatureSliderChanged(ev) { - const temp = parseInt(ev.target.value, 10); - - if (isNaN(temp)) return; - serviceActions.callService('thermostat', 'set_temperature', { entity_id: this.stateObj.entityId, - temperature: temp, + temperature: ev.target.value, }); },