1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 10:48:44 +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,11 +551,14 @@ 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
) { ) {
const id = (e.detail.data as any).id as string;
if (id !== "untracked") {
fireEvent(this, "hass-more-info", { fireEvent(this, "hass-more-info", {
entityId: (e.detail.data as any).id as string, entityId: id,
}); });
} }
} }
}
private _handleChartTypeChange(): void { private _handleChartTypeChange(): void {
if (!this._chartType) { if (!this._chartType) {