mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-19 19:07:23 +00:00
Merge pull request #3 from Danielhiversen/master
Custom min/max temperature for thermostat
This commit is contained in:
commit
5a3fcc970b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user