Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
MIT License
1.81k stars 52 forks source link

Use built in HomeAssistant's built in `editMode` #394

Closed Woyken closed 7 months ago

Woyken commented 7 months ago

Using editMode property provided by HomeAssistant cards, is way more resource efficient than querying HTML elements every 100ms

Also the setInterval was called on every hass update, and not cleaned up, it caused build up of running 100ms intervals forever for each entity update.

Clooos commented 7 months ago

Thank you! I was not aware of that, this seems like a great PR!

Edit: I confirm, this is perfect! 🍻 Thanks again!