v2.5.2
Highlights: Four layout and color fixes land in this patch. The detailed card no longer clips content or grows a scrollbar when you have several covers; it now sizes itself to its content. The Sky Compass handles large cover sets without overflowing. Color overrides set per-cover now propagate all the way through: legend swatches, the embedded elevation chart, and the FOV wedge and cover-bar segment all respect them instead of falling back to gold or --primary-color. No new config keys; no migration needed.
🐛 Fixed
-
Card height now auto-sizes to content —
getGridOptions()previously returned a fixed row count based on cover count, and a:host { height: 100% }rule locked the card to that allocation. With many covers the content clipped and showed an inner scrollbar; with few it left unused space.getGridOptions()now returnsrows: 'auto'and the fixed-height rule is removed, so the card grows to its actual content. Fixes #146. -
Card header wrapping and Sky Compass overflow with many covers — Two layout problems with larger cover counts. The
.headerelement usedalign-items: center, which clipped a title that wrapped to a second line; it now usesalign-items: flex-startso both lines are visible. The Sky Compass grid overflowed with six or more covers: row count now scales with cover count,overflow:autoapplies as a fallback, the legend column caps viamax-heightandoverflow-yscroll, and the elevation chart's end-label no longer clips after amin-width:0fix to its schedule-tick anchor. Fixes #147, #146. -
Cover-color overrides now reach legend swatches and the embedded elevation chart — The window-normal legend swatch and the Sun Today elevation chart embedded in the main card were hardcoded to
--primary-colorregardless of any per-cover color the user configured.src/adaptive-cover-pro-card.tsnow forwardscover_colorsinto the embedded chart, matching what the standalonesrc/components/sky-compass.tsandsrc/components/elevation-chart.tsalready did. -
FOV wedge and cover-bar segment default to cover color, not gold — The FOV visual in
src/components/sky-compass.tsand the position segment insrc/components/cover-bar.tspreviously fell back to gold when no explicit color override was set. They now fall back to the cover's assigned color instead, so the FOV blends with the cover it represents rather than standing out as a fixed gold shape. Fixes #144, #145.
📦 Install / Upgrade
Through HACS, update to v2.5.2. Restart is not required for the card; reload your browser or dashboard.
HA caches ES modules aggressively. After updating, bump the ?v=2.5.2 query string on your Lovelace resource URL (/hacsfiles/adaptive-cover-pro-card/adaptive-cover-pro-card.js?v=2.5.2) to ensure browsers pick up the new bundle. A hard-refresh alone is not sufficient.
No config migration needed. All changes are layout corrections and color propagation fixes; existing configs work without modification.
Compatibility: Home Assistant 2024.1+, Adaptive Cover Pro integration v2.22.1-beta.3 or newer.