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:
@@ -551,9 +551,12 @@ export class HuiEnergyDevicesGraphCard
|
||||
e.detail.seriesType === "pie" &&
|
||||
e.detail.event?.target?.type === "tspan" // label
|
||||
) {
|
||||
fireEvent(this, "hass-more-info", {
|
||||
entityId: (e.detail.data as any).id as string,
|
||||
});
|
||||
const id = (e.detail.data as any).id as string;
|
||||
if (id !== "untracked") {
|
||||
fireEvent(this, "hass-more-info", {
|
||||
entityId: id,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user