v1.1.10 — Lovelace resource recovery & cleanup
What's changed
This release ships two Lovelace resource fixes that should finally resolve the duplicate card picker entries and stale frontend code from #28.
Stale card resource recovery (#38)
- When a stale cached resource wins the browser load race, the card now detects it and patches the already-registered custom element instead of giving up.
window.customCardsregistration is hardened — stale resources that load before or after the current one collapse to a single picker entry.- Lovelace resource cleanup retries after startup, so installs where Lovelace initialises late can still self-heal stale versioned resources.
Resource cleanup on unload and remove (#39)
- A new
async_remove_entrymethod cleans up all HA LightFX Lovelace resources when the integration is fully removed from Home Assistant. async_unload_entrynow also cleans up resources, preventing orphaned entries from accumulating across reinstalls and upgrades.
Updating
Update HA LightFX through HACS → restart Home Assistant → hard-refresh your browser (Ctrl+Shift+R or Cmd+Shift+R).
After updating, check:
- Settings → Dashboards → Resources shows exactly one
/ha_lightfx/ha-lightfx-card.js?v=1.1.10entry - The card picker shows a single HA LightFX card
- Your existing card shows light dots
If you still see problems, please send browser console output plus the WebSocket response for ha_lightfx/layouts.