Skip to content

AR Smart IR Builder

Choose a tag to compare

@marsh4200 marsh4200 released this 02 Jul 11:54
468c896

BUMP V1.5.1
🐞 Bug Fix — Frontend Panel Cache (panel.js)
Fixed

The Step 2 – AC Remote Style selector and the new toggle-style AC remote features were not appearing after updating the integration, even though the new files had been installed correctly.

Root Cause

Home Assistant continued serving a cached version of panel.js.

The integration registers the frontend panel using a fixed URL with a manually managed cache-busting version (js_url in init.py). Because the version wasn't updated when panel.js changed, both browsers and Home Assistant continued loading the old JavaScript.

Resolution
Updated the frontend cache-busting version:
?v=25 → ?v=26
This forces Home Assistant to load the latest panel.js after upgrading.
📝 Developer Note

Whenever panel.js is modified in future releases:

Increment the cache-busting version in _async_register_panel() (init.py).
Perform a full Home Assistant restart after updating.

Simply replacing panel.js or refreshing the browser is not enough—Home Assistant will continue serving the previously registered cached version until the cache-busting version changes.