v0.4.8
Restart timers and subscriptions on panel re-attach
This is the actual root cause behind the v0.4.5–v0.4.7 attempts. HA detaches and re-attaches the panel custom-element when navigating between sidebar entries. Previous code cleared timers in disconnectedCallback but the _init guard (if (!_initialized)) prevented re-setup on re-attach. Result: no 5 s poll, no 1 s countdown ticker, no heater state subscription — UI froze until a full page reload (F5).
connectedCallbacknow restarts timers and re-subscribes to the heater entity even when already initialized;_initis still only called the first time.- Fixes both: external heater toggle UI sync, and live "Heating ends in" countdown.
After upgrading: restart Home Assistant, then hard-refresh the browser (Ctrl+Shift+R / Cmd+Shift+R) so the new panel.js is fetched once. After that no more refreshing should be needed.