Apply panel fixes to the Lovelace card
The fixes shipped in 0.4.5–0.4.10 only touched the sidebar panel (panel.js); the Lovelace card (card.js) still polled every 5 s with no live ticker, no state_changed subscription, no re-attach handling, and no visibility wake-up.
All of the same logic is now ported to the card:
- Per-second
Ends incountdown with server clock skew correction. - Immediate refresh on heater entity
state_changed(matches the way other Lovelace cards stay in sync). - Restart of timers and subscriptions when the card is re-attached to the DOM (HA detaches/reattaches custom elements on navigation).
- Force-refresh when the browser tab returns to foreground (browsers throttle
setIntervalin background tabs).
Also removed the diagnostic console.log calls added in 0.4.11 from panel.js.
After upgrading: HACS update → restart Home Assistant → hard-refresh browser (Ctrl+Shift+R).