Skip to content

v2.5.2

Choose a tag to compare

@github-actions github-actions released this 11 Jun 03:18

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 contentgetGridOptions() 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 returns rows: '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 .header element used align-items: center, which clipped a title that wrapped to a second line; it now uses align-items: flex-start so both lines are visible. The Sky Compass grid overflowed with six or more covers: row count now scales with cover count, overflow:auto applies as a fallback, the legend column caps via max-height and overflow-y scroll, and the elevation chart's end-label no longer clips after a min-width:0 fix 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-color regardless of any per-cover color the user configured. src/adaptive-cover-pro-card.ts now forwards cover_colors into the embedded chart, matching what the standalone src/components/sky-compass.ts and src/components/elevation-chart.ts already did.

  • FOV wedge and cover-bar segment default to cover color, not gold — The FOV visual in src/components/sky-compass.ts and the position segment in src/components/cover-bar.ts previously 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.