mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-26 14:27:20 +00:00
Only interpolate sensor line charts (#11082)
This commit is contained in:
parent
5c488f8298
commit
5261d583a8
@ -337,8 +337,8 @@ class StateHistoryChartLine extends LitElement {
|
|||||||
pushData(new Date(entityState.last_changed), series);
|
pushData(new Date(entityState.last_changed), series);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Only disable interpolation for sensors
|
// Only interpolate for sensors
|
||||||
const isStep = domain === "sensor";
|
const isStep = domain !== "sensor";
|
||||||
addDataSet(name, isStep);
|
addDataSet(name, isStep);
|
||||||
|
|
||||||
let lastValue: number;
|
let lastValue: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user