1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Don't show more info for untracked consumption (#28151)

This commit is contained in:
Simon Lamon
2025-11-27 08:55:23 +01:00
committed by GitHub
parent 0b6e35eb53
commit 2896519bfd

View File

@@ -551,9 +551,12 @@ export class HuiEnergyDevicesGraphCard
e.detail.seriesType === "pie" && e.detail.seriesType === "pie" &&
e.detail.event?.target?.type === "tspan" // label e.detail.event?.target?.type === "tspan" // label
) { ) {
fireEvent(this, "hass-more-info", { const id = (e.detail.data as any).id as string;
entityId: (e.detail.data as any).id as string, if (id !== "untracked") {
}); fireEvent(this, "hass-more-info", {
entityId: id,
});
}
} }
} }