Replaces the global beer_name override with beer_overrides, a map keyed by the product ID the integration reports. An entry applies only while that keg is tapped, so a correction retires itself on a keg swap — which matters because a card cannot rewrite its own config and so could never prune a stale entry. beer_name is now ignored, joining beer_entity. That is what fixes the reported symptom: cards configured before 0.3.0 all carry the key, because the editor of that era always wrote it and getStubConfig seeded it, and 0.3.1 promoted those dormant values into permanent overrides. No migration is possible, since the old value records no product ID. An applied override is now marked on the card with the name detection resolved, so it can never be mistaken for a detection result. The editor records corrections against the currently tapped keg and lists saved entries so leftovers are visible and removable. Verified against the built bundle in a browser with stubbed hass data: the reported case, the keg-swap recurrence, unrecognised IDs, the no-keg state, all five layouts, and a 0.4.0 config loading on the 0.3.1 bundle. Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
881 B
JSON
36 lines
881 B
JSON
{
|
|
"name": "perfectdraft-card",
|
|
"version": "0.4.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"
|
|
}
|
|
}
|