1
mirror of https://github.com/home-assistant/frontend synced 2024-10-11 04:27:45 +02:00

Custom min/max temperature for thermostat

This commit is contained in:
Daniel Hoyer Iversen 2015-07-23 18:06:15 +02:00
parent 576c04efb4
commit 91fd65b300

View File

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