1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Filter out hidden entities in map configuration (#28320)

This commit is contained in:
Benjamin
2025-12-05 08:44:07 +01:00
committed by GitHub
parent ed8ccbe12c
commit 3b092b834e

View File

@@ -94,7 +94,10 @@ class HuiMapCard extends LitElement implements LovelaceCard {
}
});
return locationEntities.filter((entity) => !personSources.has(entity));
return locationEntities.filter(
(entityId) =>
!hass.entities?.[entityId]?.hidden && !personSources.has(entityId)
);
}
public setConfig(config: MapCardConfig): void {