1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-08 17:28:46 +01:00

Fix area card editor when an entity have an unknown device (#20900)

This commit is contained in:
Paul Bottein
2024-05-29 16:29:04 +02:00
committed by GitHub
parent 3eea7dc6cd
commit 5cc08cfe0b
@@ -130,7 +130,7 @@ export class HuiAreaCardEditor
!e.entity_category &&
!e.hidden &&
(e.area_id === area ||
(e.device_id && this.hass!.devices[e.device_id].area_id === area))
(e.device_id && this.hass!.devices[e.device_id]?.area_id === area))
);
const classes = entities