Fix sankey total calculation to account for `included_in_stat`

pull/25805/head
Petar Petrov 2025-06-16 18:26:49 +03:00
parent 634e1dbde8
commit d30674f5ee
1 changed files with 2 additions and 1 deletions

View File

@ -238,7 +238,6 @@ class HuiEnergySankeyCard
if (value < 0.01) {
return;
}
untrackedConsumption -= value;
const node = {
id: device.stat_consumption,
label:
@ -260,6 +259,8 @@ class HuiEnergySankeyCard
source: node.parent,
target: node.id,
});
} else {
untrackedConsumption -= value;
}
deviceNodes.push(node);
});