Closed s3anyboy closed 1 week ago
And what does the browser console say? https://www.jivrus.com/resources/articles/technical/how-to-open-browser-console-log
Started testing 1.4 today, managed to get a similar issue:
map-card.js?hacstag=734825457140:14865 TypeError: Cannot read properties of undefined (reading 'attributes')
at map-card.js?hacstag=734825457140:15862:20
at Array.map (<anonymous>)
at MapCard._firstRender (map-card.js?hacstag=734825457140:15853:39)
at MapCard.render (map-card.js?hacstag=734825457140:15734:32)
at MapCard.update (map-card.js?hacstag=734825457140:14550:236)
at MapCard.performUpdate (map-card.js?hacstag=734825457140:14537:5001)
at MapCard.scheduleUpdate (map-card.js?hacstag=734825457140:14537:4535)
at MapCard._$ET (map-card.js?hacstag=734825457140:14537:4443)
But this happened with a wrong card's code - entity was deleted accidentally while typing:
@ildar170975 that's more or less the intended behavior.
@nathan-gs I fully agree; may be the OP missed some required attribute?
Closing the issue @s3anyboy, but please reopen if you have more info.
Another case - defining a non-existing entity:
or an entity w/o coords:
I wonder - if a person is at home - then the entity does not have coords - then will we see an error?
Another case - defining a non-existing entity:
or an entity w/o coords:
I wonder - if a person is at home - then the entity does not have coords - then will we see an error?
Yes, I have custom device_trackers to merge multiple location sensor sources and sometimes they do not provide GPS coords, so it seems this was the cause of the issue.
in 1.3.0 the map at least still loaded despite displaying this error, but after update to 1.4.0 the map is just a black/white screen if the problem entity is defined. Not sure what can be done about this exactly, I will probably just have to stay on 1.3.0 for a while lol, thanks though.
I see the message "Error found in first run, check Console" where the attributions listed, but I have looked in the logs and dont see anything related to this, even with debug: true in the card