mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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",
|
||||
});
|
||||
});
|
||||
return sorted_devices.map(
|
||||
(device) => data.find((d) => (d.id as string).includes(device))!
|
||||
);
|
||||
return sorted_devices
|
||||
.map((device) => data.find((d) => (d.id as string).includes(device))!)
|
||||
.filter(Boolean);
|
||||
}
|
||||
|
||||
static styles = css`
|
||||
|
Loading…
x
Reference in New Issue
Block a user