Skip to content

Commit 2896519

Browse files
authored
Don't show more info for untracked consumption (#28151)
1 parent 0b6e35e commit 2896519

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/panels/lovelace/cards/energy/hui-energy-devices-graph-card.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,12 @@ export class HuiEnergyDevicesGraphCard
551551
e.detail.seriesType === "pie" &&
552552
e.detail.event?.target?.type === "tspan" // label
553553
) {
554-
fireEvent(this, "hass-more-info", {
555-
entityId: (e.detail.data as any).id as string,
556-
});
554+
const id = (e.detail.data as any).id as string;
555+
if (id !== "untracked") {
556+
fireEvent(this, "hass-more-info", {
557+
entityId: id,
558+
});
559+
}
557560
}
558561
}
559562

0 commit comments

Comments
 (0)