Files
hassio-component-perfectdra…/package.json
T
rickandCursor 1d0c014111 Close the auto-detection gaps: full keg ID coverage, honest fallbacks
Implements openspec/changes/auto-detect-gap-closure.

Catalog now covers all 114 product IDs the integration can report (was 57).
22 IDs mapped onto existing entries, unlocking 20 keg photos that already
shipped but were unreachable; 36 new entries added for beers the card did
not know. Product ID 48061 was mapped to the wrong beer -- it is Northern
Monk Faith, not A Little Faith -- so it now has its own entry.

Detection precedence is explicit: beer_name override, then product ID, then
reported keg name, then an honest no-keg state. Removes the fallback that
displayed Leffe Blonde whenever detection failed, and prefers the card's
curated name over the integration's product-listing name (12 labels).

beer_name returns as an optional override, empty by default, which also
un-orphans custom_beers. Cards on integrations without the keg sensors now
get told to update rather than shown a wrong beer. _resolveEntities no
longer latches on temperature alone.

Adds npm run check:catalog to catch upstream catalog drift, the root cause
of the original gap.

Hardware verification (tasks 8.1-8.3) still outstanding.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 17:04:39 +02:00

36 lines
881 B
JSON

{
"name": "perfectdraft-card",
"version": "0.3.0",
"description": "Custom Lovelace card for the PerfectDraft Pro Home Assistant integration",
"main": "dist/perfectdraft-card.js",
"type": "module",
"scripts": {
"build": "rollup -c",
"watch": "rollup -c --watch",
"lint": "tsc --noEmit",
"check:catalog": "node scripts/check-catalog.mjs"
},
"keywords": [
"home-assistant",
"hacs",
"lovelace",
"custom-card",
"perfectdraft"
],
"author": "Falkvinge",
"license": "UNLICENSED",
"dependencies": {
"custom-card-helpers": "^1.9.0",
"lit": "^3.2.0"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.0",
"rollup": "^4.28.0",
"rollup-plugin-copy": "^3.5.0",
"tslib": "^2.8.0",
"typescript": "^5.7.0"
}
}