mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix device energy card with max_devices
(#24150)
This commit is contained in:
parent
936f66c41c
commit
91e8750f44
@ -447,9 +447,9 @@ export class HuiEnergyDevicesDetailGraphCard
|
|||||||
stack: compare ? "devicesCompare" : "devices",
|
stack: compare ? "devicesCompare" : "devices",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return sorted_devices.map(
|
return sorted_devices
|
||||||
(device) => data.find((d) => (d.id as string).includes(device))!
|
.map((device) => data.find((d) => (d.id as string).includes(device))!)
|
||||||
);
|
.filter(Boolean);
|
||||||
}
|
}
|
||||||
|
|
||||||
static styles = css`
|
static styles = css`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user