mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Merge pull request #23 from sdague/master
use lastUpdated to graph thermostat history
This commit is contained in:
commit
561107250d
@ -20,7 +20,7 @@
|
|||||||
"author": "Paulus Schoutsen <Paulus@PaulusSchoutsen.nl> (http://paulusschoutsen.nl)",
|
"author": "Paulus Schoutsen <Paulus@PaulusSchoutsen.nl> (http://paulusschoutsen.nl)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"home-assistant-js": "git+https://github.com/balloob/home-assistant-js.git#b6909b2765077d100131b2db126cd042aec1db5f",
|
"home-assistant-js": "git+https://github.com/balloob/home-assistant-js.git#a6ba8f88f5f0cfc09a4472fbda8d08e752358cee",
|
||||||
"lodash": "^3.10.0",
|
"lodash": "^3.10.0",
|
||||||
"moment": "^2.11.1"
|
"moment": "^2.11.1"
|
||||||
},
|
},
|
||||||
|
@ -145,7 +145,7 @@ export default new Polymer({
|
|||||||
const curTemp = saveParseFloat(state.attributes.current_temperature);
|
const curTemp = saveParseFloat(state.attributes.current_temperature);
|
||||||
const targetHigh = saveParseFloat(state.attributes.target_temp_high);
|
const targetHigh = saveParseFloat(state.attributes.target_temp_high);
|
||||||
const targetLow = saveParseFloat(state.attributes.target_temp_low);
|
const targetLow = saveParseFloat(state.attributes.target_temp_low);
|
||||||
pushData([state.lastChangedAsDate, curTemp, targetHigh, targetLow], noInterpolations);
|
pushData([state.lastUpdatedAsDate, curTemp, targetHigh, targetLow], noInterpolations);
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
dataTable.addColumn('number', `${name} target temperature`);
|
dataTable.addColumn('number', `${name} target temperature`);
|
||||||
@ -155,7 +155,7 @@ export default new Polymer({
|
|||||||
processState = state => {
|
processState = state => {
|
||||||
const curTemp = saveParseFloat(state.attributes.current_temperature);
|
const curTemp = saveParseFloat(state.attributes.current_temperature);
|
||||||
const target = saveParseFloat(state.attributes.temperature);
|
const target = saveParseFloat(state.attributes.temperature);
|
||||||
pushData([state.lastChangedAsDate, curTemp, target], noInterpolations);
|
pushData([state.lastUpdatedAsDate, curTemp, target], noInterpolations);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user