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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user