1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-26 13:46:41 +00:00

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

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) {