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.
Using
editMode
property provided by HomeAssistant cards, is way more resource efficient than querying HTML elements every 100msAlso the
setInterval
was called on everyhass
update, and not cleaned up, it caused build up of running 100ms intervals forever for each entity update.