mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix untracked energy in compare (#23949)
This commit is contained in:
parent
3f2e2bc659
commit
ea57846465
@ -314,8 +314,9 @@ export class HuiEnergyDevicesDetailGraphCard
|
|||||||
|
|
||||||
processedData.forEach((device) => {
|
processedData.forEach((device) => {
|
||||||
device.data.forEach((datapoint) => {
|
device.data.forEach((datapoint) => {
|
||||||
totalDeviceConsumption[datapoint[0]] =
|
totalDeviceConsumption[datapoint[compare ? 2 : 0]] =
|
||||||
(totalDeviceConsumption[datapoint[0]] || 0) + datapoint[1];
|
(totalDeviceConsumption[datapoint[compare ? 2 : 0]] || 0) +
|
||||||
|
datapoint[1];
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
const compareOffset = compare
|
const compareOffset = compare
|
||||||
|
Loading…
x
Reference in New Issue
Block a user