-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore attributes removed from ha-entity-marker in ha-map #23603
Conversation
I don't think this is a good idea, it will impact performance just for a custom component and can be removed at any point again 🤷♂️ |
Ok, I did not realize there was a performance difference between setting attribute and setting property. Thanks for checking. If there's no way forward, feel free to close this. |
tbh, we never noticed any performance issue on the maps before with the attribute, even with more complex mods than the one I posted in the Discord channel. But if that would truly be the case, and leaving out entity_id here would be permanent, would there be another possibility to get to the individual markers for the entity_id's? If this was not planned in the first place, because of performance issues, as seems to be the case, please (re-)consider reinstating |
I mean, it is small, but it removes the step of converting the attribute to a property. |
Should I have just done only entity-id as an attribute and left the other 3 as properties? |
If thats the only one thats needed, yes 👍 Actually, I think I would prefer to fix this inside |
* Restore attributes removed from ha-entity-marker in ha-map * Use Reflect
letting you know this is working again, thank yvm. |
Proposed change
In a recent change, I inadvertently removed attributes from ha-entity-marker that several users were relying on to identify specific markers in the DOM for styling.
This change restores those attributes for maximum backward compatibility, instead of being set as properties.
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: