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