Skip to content

v1.1.10 — Lovelace resource recovery & cleanup

Choose a tag to compare

@rusty4444 rusty4444 released this 24 Jun 21:37

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.customCards registration 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_entry method cleans up all HA LightFX Lovelace resources when the integration is fully removed from Home Assistant.
  • async_unload_entry now 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:

  1. Settings → Dashboards → Resources shows exactly one /ha_lightfx/ha-lightfx-card.js?v=1.1.10 entry
  2. The card picker shows a single HA LightFX card
  3. Your existing card shows light dots

If you still see problems, please send browser console output plus the WebSocket response for ha_lightfx/layouts.