mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 08:46:35 +00:00
Thermostat state is no longer used for target temp
This commit is contained in:
parent
21ddacc5a9
commit
c51c176ed6
@ -32,7 +32,7 @@ export default new Polymer({
|
|||||||
},
|
},
|
||||||
|
|
||||||
stateObjChanged(newVal) {
|
stateObjChanged(newVal) {
|
||||||
this.targetTemperatureSliderValue = newVal.state;
|
this.targetTemperatureSliderValue = newVal.attributes.temperature;
|
||||||
this.awayToggleChecked = newVal.attributes.away_mode === 'on';
|
this.awayToggleChecked = newVal.attributes.away_mode === 'on';
|
||||||
|
|
||||||
this.tempMin = newVal.attributes.min_temp;
|
this.tempMin = newVal.attributes.min_temp;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<div class='horizontal justified layout'>
|
<div class='horizontal justified layout'>
|
||||||
<state-info state-obj="[[stateObj]]"></state-info>
|
<state-info state-obj="[[stateObj]]"></state-info>
|
||||||
<div class='state'>
|
<div class='state'>
|
||||||
<div class='target'>[[stateObj.stateDisplay]]</div>
|
<div class='target'>[[computeTargetTemperature(stateObj)]]</div>
|
||||||
|
|
||||||
<div class='current'>
|
<div class='current'>
|
||||||
<span>Currently: </span>
|
<span>Currently: </span>
|
||||||
|
@ -10,4 +10,8 @@ export default new Polymer({
|
|||||||
type: Object,
|
type: Object,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
computeTargetTemperature(stateObj) {
|
||||||
|
return `${stateObj.attributes.temperature} ${stateObj.attributes.unit_of_measurement}`;
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user