Merge pull request #3 from Danielhiversen/master

Custom min/max temperature for thermostat
This commit is contained in:
Paulus Schoutsen 2015-07-24 03:24:56 -07:00
commit 5a3fcc970b

View File

@ -36,14 +36,8 @@ export default Polymer({
this.targetTemperatureSliderValue = this.stateObj.state;
this.awayToggleChecked = this.stateObj.attributes.away_mode == 'on';
if (this.stateObj.attributes.unit_of_measurement ===
temperatureUnits.UNIT_TEMP_F) {
this.tempMin = 45;
this.tempMax = 95;
} else {
this.tempMin = 7;
this.tempMax = 35;
}
this.tempMin = this.stateObj.attributes.min_temp;
this.tempMax = this.stateObj.attributes.max_temp;
},
computeClassNames(stateObj) {