mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Don't hide location entities that are "home" in the MapViewStrategy (#23462)
This commit is contained in:
parent
c4b2896fac
commit
eaab19fb8c
@ -14,7 +14,6 @@ const getMapEntities = (hass: HomeAssistant) => {
|
|||||||
const locationEntities: string[] = [];
|
const locationEntities: string[] = [];
|
||||||
Object.values(hass.states).forEach((entity) => {
|
Object.values(hass.states).forEach((entity) => {
|
||||||
if (
|
if (
|
||||||
entity.state === "home" ||
|
|
||||||
!("latitude" in entity.attributes) ||
|
!("latitude" in entity.attributes) ||
|
||||||
!("longitude" in entity.attributes)
|
!("longitude" in entity.attributes)
|
||||||
) {
|
) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user