v2.10.1
Highlights
v2.10.1 fixes a silent state-corruption bug that could strand the card in its empty-state panel across reloads. When a card or card-picker preview fetched the entity registry during the brief window between config-entry creation and integration setup completing, it saw zero ACP entities and persisted that empty result to localStorage. With no TTL and no guard against empty payloads, that stale cache drove the empty-state display until the user manually cleared localStorage. The fix adds a 60-second TTL and guards both read and write paths so any pre-existing empty cache self-heals on the next fetch — no user action required.
Fixed
- Registry cache empty-slice and TTL guard (
src/lib/registry-cache.ts,src/adaptive-cover-pro-card.ts) —registryCache.set()now rejects empty slices instead of writing them;registryCache.get()returnsnullfor empty entries and for cache entries older thanREGISTRY_CACHE_TTL_MS(60 s). A call-site guard in_fetchRegistryadds a second write barrier. Existing empty-cache entries written before this fix self-heal silently on the next registry fetch. Refs #181, PR #182.
Compatibility
- Home Assistant 2024.1+
- Adaptive Cover Pro integration: no new minimum version required
- No config migration needed
Install / Upgrade
Through HACS, update to v2.10.1. A browser restart is not required.
HA caches ES modules aggressively. After updating, bump the ?v=2.10.1 query string on your Lovelace resource URL (/hacsfiles/adaptive-cover-pro-card/adaptive-cover-pro-card.js?v=2.10.1) to ensure browsers pick up the new bundle. A hard-refresh alone is not sufficient.