Skip to content

v1.4.0 - Sections Layout Support & Build Tooling

Choose a tag to compare

@eyalgal eyalgal released this 16 Apr 21:43

Sections Layout Support

  • getLayoutOptions() for Sections Layout: The card now provides proper grid sizing hints to Home Assistant's sections layout. Horizontal layout snaps to 4 columns / 1 row, and vertical layout snaps to 2 columns / 3 rows. This prevents the card from being incorrectly sized or leaving empty space in sections-based dashboards.
  • getCardSize() for Masonry Layout: Added the standard getCardSize() method so the masonry layout engine can correctly estimate the card's height (1 row for horizontal, 3 rows for vertical).

Build Tooling

  • Rollup Bundling: Source code now lives in src/hatch-card.js. The root hatch-card.js is the built output, produced by npm run build. This matches the setup used in Simple Timer Card and Shopping List Card for a consistent development workflow across all three projects.