@@ -50,7 +50,7 @@ function e(e,t,r,s){var i,a=arguments.length,o=a<3?t:null===s?s=Object.getOwnPro
`:K}
`}render(){return this.hass?j`
-
PerfectDraft Card Editor v${"0.4.0"} · ${this._devices.length} device(s) found
+
PerfectDraft Card Editor v${"0.4.1"} · ${this._devices.length} device(s) found
${0===this._devices.length?j`
No PerfectDraft devices found. Please install and configure the PerfectDraft integration first.
`:j`
@@ -844,4 +844,4 @@ function e(e,t,r,s){var i,a=arguments.length,o=a<3?t:null===s?s=Object.getOwnPro
padding: 16px;
color: var(--error-color, #db4437);
}
- `}};e([ge({attribute:!1})],Me.prototype,"hass",void 0),e([pe()],Me.prototype,"_config",void 0),e([pe()],Me.prototype,"_beer",void 0),e([pe()],Me.prototype,"_glassSize",void 0),e([pe()],Me.prototype,"_layout",void 0),e([pe()],Me.prototype,"_matrixColumns",void 0),e([pe()],Me.prototype,"_maxMatrixWidth",void 0),e([pe()],Me.prototype,"_showGlassDialog",void 0),e([pe()],Me.prototype,"_failedImages",void 0),e([pe()],Me.prototype,"_overrideActive",void 0),e([pe()],Me.prototype,"_detectedName",void 0),Me=e([de("perfectdraft-card")],Me),window.customCards=window.customCards||[],window.customCards.push({type:"perfectdraft-card",name:"PerfectDraft Card",description:"Display PerfectDraft Pro keg status with beer emojis",preview:!0,documentationURL:"https://github.com/Falkvinge/hassio-component-perfectdraft-pro"}),console.info("%c PERFECTDRAFT-CARD %c v0.4.0 ","background: #f5a623; color: #000; font-weight: bold;","background: #333; color: #f5a623;");export{Me as PerfectDraftCard};
+ `}};e([ge({attribute:!1})],Me.prototype,"hass",void 0),e([pe()],Me.prototype,"_config",void 0),e([pe()],Me.prototype,"_beer",void 0),e([pe()],Me.prototype,"_glassSize",void 0),e([pe()],Me.prototype,"_layout",void 0),e([pe()],Me.prototype,"_matrixColumns",void 0),e([pe()],Me.prototype,"_maxMatrixWidth",void 0),e([pe()],Me.prototype,"_showGlassDialog",void 0),e([pe()],Me.prototype,"_failedImages",void 0),e([pe()],Me.prototype,"_overrideActive",void 0),e([pe()],Me.prototype,"_detectedName",void 0),Me=e([de("perfectdraft-card")],Me),window.customCards=window.customCards||[],window.customCards.push({type:"perfectdraft-card",name:"PerfectDraft Card",description:"Display PerfectDraft Pro keg status with beer emojis",preview:!0,documentationURL:"https://github.com/Falkvinge/hassio-component-perfectdraft-pro"}),console.info("%c PERFECTDRAFT-CARD %c v0.4.1 ","background: #f5a623; color: #000; font-weight: bold;","background: #333; color: #f5a623;");export{Me as PerfectDraftCard};
diff --git a/package.json b/package.json
index 1ad28a7..812f472 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "perfectdraft-card",
- "version": "0.4.0",
+ "version": "0.4.1",
"description": "Custom Lovelace card for the PerfectDraft Pro Home Assistant integration",
"main": "dist/perfectdraft-card.js",
"type": "module",
diff --git a/scripts/keg-catalog.reference.json b/scripts/keg-catalog.reference.json
index ee53bb6..3b71c75 100644
--- a/scripts/keg-catalog.reference.json
+++ b/scripts/keg-catalog.reference.json
@@ -1,6 +1,6 @@
{
"_source": "https://github.com/Falkvinge/hassio-integration-perfectdraft-pro/blob/main/custom_components/perfectdraft/keg_catalog.json",
- "_upstreamCommit": "3c4b9ca6",
+ "_upstreamCommit": "fc8a25c4",
"_note": "Reference snapshot for npm run check:catalog. Not used at runtime. Re-sync when the integration catalog changes.",
"kegs": {
"452": "Beck's Gold",
@@ -115,7 +115,8 @@
"47999": "Thatchers Gold Cider",
"48019": "Leffe Blonde 0.0%",
"48024": "Siren Lumina IPA",
+ "48050": "Anheuser-Busch Bud",
"48061": "Northern Monk Faith",
"48134": "Kopparberg Crisp Apple"
}
-}
\ No newline at end of file
+}
diff --git a/src/beer-catalog.ts b/src/beer-catalog.ts
index 777d83a..5f5eacc 100644
--- a/src/beer-catalog.ts
+++ b/src/beer-catalog.ts
@@ -68,7 +68,7 @@ const CATALOG: BeerEntry[] = [
// === LAGERS & PILSNERS ===
{ slug: "budweiser", name: "Budweiser", brewery: "Anheuser-Busch", style: "American Lager", abv: 5.0, colors: { primary: "#C8102E", secondary: "#FFF0F0", text: "#FFFFFF" }, kegId: "31747" },
- { slug: "bud", name: "Anheuser-Busch Bud", brewery: "Anheuser-Busch", style: "American Lager", abv: 5.0, colors: { primary: "#C8102E", secondary: "#FFF0F0", text: "#FFFFFF" }, imagePath: kegImage("bud") },
+ { slug: "bud", name: "Anheuser-Busch Bud", brewery: "Anheuser-Busch", style: "American Lager", abv: 5.0, colors: { primary: "#C8102E", secondary: "#FFF0F0", text: "#FFFFFF" }, imagePath: kegImage("bud"), kegId: "48050" },
{ slug: "bud-light", name: "Bud Light", brewery: "Anheuser-Busch", style: "Light Lager", abv: 3.5, colors: { primary: "#004B8D", secondary: "#E8F4FF", text: "#FFFFFF" }, imagePath: kegImage("bud-light"), kegId: "42377" },
{ slug: "corona", name: "Corona Extra", brewery: "Grupo Modelo", style: "Mexican Lager", abv: 4.5, colors: { primary: "#FDB913", secondary: "#FFFCE5", text: "#00205B" }, imagePath: kegImage("corona"), kegId: "34493" },
{ slug: "corona-cero", name: "Corona Cero", brewery: "Grupo Modelo", style: "Non-Alcoholic Lager", abv: 0.0, colors: { primary: "#0073B1", secondary: "#E5F3FF", text: "#FFFFFF" }, imagePath: kegImage("corona-cero"), kegId: "43235" },
diff --git a/src/editor.ts b/src/editor.ts
index 52461b6..3d5e527 100644
--- a/src/editor.ts
+++ b/src/editor.ts
@@ -5,7 +5,7 @@ import type { PerfectDraftCardConfig } from "./types.js";
import { GLASS_SIZES, DEFAULT_GLASS_SIZE, DOMAIN, LAYOUTS, DEFAULT_LAYOUT } from "./const.js";
import { getAllBeers, getBeerByKegId } from "./beer-catalog.js";
-const EDITOR_VERSION = "0.4.0";
+const EDITOR_VERSION = "0.4.1";
interface DiscoveredDevice {
deviceId: string;
diff --git a/src/perfectdraft-card.ts b/src/perfectdraft-card.ts
index 87dde5d..9b71eb5 100644
--- a/src/perfectdraft-card.ts
+++ b/src/perfectdraft-card.ts
@@ -21,7 +21,7 @@ import {
} from "./beer-catalog.js";
import "./editor.js";
-const CARD_VERSION = "0.4.0";
+const CARD_VERSION = "0.4.1";
const NO_KEG_LABEL = "No keg detected";