mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Fix sankey total calculation to account for included_in_stat
(#25805)
This commit is contained in:
parent
cc0586bf36
commit
3cfc6297b5
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user