Files
hassio-component-perfectdra…/src/types.ts
T
rick 58733653dd Implement PerfectDraft custom card v0.1.0
Full Lovelace card implementation:
- Two-zone layout (beer label left, emoji pictogram right)
- 45-beer catalog with brand color palettes
- Glass size selection dialog (250/330/500/UK pint/US pint)
- Beer selection dialog with search filtering
- Freshness warning system (CSS-only animations, 4 tiers)
- Empty keg disaster scene
- Visual card editor with device auto-discovery
- HACS-compatible packaging (hacs.json, README, dist/ output)
- 44KB bundle, under 50KB budget

Made-with: Cursor
2026-04-18 18:19:09 +02:00

20 lines
394 B
TypeScript

export interface PerfectDraftCardConfig {
type?: string;
device_id: string;
beer_name?: string;
glass_size?: number;
beer_entity?: string;
custom_beers?: CustomBeerEntry[];
}
export interface CustomBeerEntry {
name: string;
brewery?: string;
style?: string;
abv?: number;
color_primary?: string;
color_secondary?: string;
color_text?: string;
image_url?: string;
}