@@ -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.2"} · ${this._devices.length} device(s) found
+
PerfectDraft Card Editor v${"0.4.4"} · ${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.2 ","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.4 ","background: #f5a623; color: #000; font-weight: bold;","background: #333; color: #f5a623;");export{Me as PerfectDraftCard};
diff --git a/package-lock.json b/package-lock.json
index 1b266e9..1013b0b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "perfectdraft-card",
- "version": "0.3.1",
+ "version": "0.4.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "perfectdraft-card",
- "version": "0.3.1",
+ "version": "0.4.4",
"license": "UNLICENSED",
"dependencies": {
"custom-card-helpers": "^1.9.0",
diff --git a/package.json b/package.json
index 2efcbe1..130fcba 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "perfectdraft-card",
- "version": "0.4.2",
+ "version": "0.4.4",
"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 4264c5e..523963d 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": "3b82df6e",
+ "_upstreamCommit": "8b2c4418",
"_note": "Reference snapshot for npm run check:catalog. Not used at runtime. Re-sync when the integration catalog changes.",
"kegs": {
"452": "Beck's Gold",
@@ -118,6 +118,7 @@
"48024": "Siren Lumina IPA",
"48050": "Anheuser-Busch Bud",
"48061": "Northern Monk Faith",
- "48134": "Kopparberg Crisp Apple"
+ "48134": "Kopparberg Crisp Apple",
+ "48180": "Camden Stout"
}
}
diff --git a/src/assets/kegs/camden-stout.webp b/src/assets/kegs/camden-stout.webp
new file mode 100644
index 0000000..0f6325b
Binary files /dev/null and b/src/assets/kegs/camden-stout.webp differ
diff --git a/src/beer-catalog.ts b/src/beer-catalog.ts
index e521826..830cc05 100644
--- a/src/beer-catalog.ts
+++ b/src/beer-catalog.ts
@@ -118,6 +118,7 @@ const CATALOG: BeerEntry[] = [
{ slug: "camden-ipa", name: "Camden IPA", brewery: "Camden Town Brewery", style: "India Pale Ale", abv: 5.8, colors: { primary: "#2E8B57", secondary: "#E5F5EC", text: "#FFFFFF" }, imagePath: kegImage("camden-ipa"), kegId: "44425" },
{ slug: "camden-eazy", name: "Camden Eazy", brewery: "Camden Town Brewery", style: "Session Pale", abv: 4.0, colors: { primary: "#F5C242", secondary: "#FFFCE5", text: "#000000" }, imagePath: kegImage("camden-eazy"), kegId: "47629" },
{ slug: "camden-eazy-47792", name: "Camden Eazy", brewery: "Camden Town Brewery", style: "Session Pale", abv: 4.0, colors: { primary: "#F5C242", secondary: "#FFFCE5", text: "#000000" }, imagePath: kegImage("camden-eazy"), kegId: "47792" },
+ { slug: "camden-stout", name: "Camden Stout", brewery: "Camden Town Brewery", style: "Stout", abv: 4.0, colors: { primary: "#1A0F0A", secondary: "#F2E6D8", text: "#F5C242" }, imagePath: kegImage("camden-stout"), kegId: "48180" },
{ slug: "tiny-rebel-clwb", name: "Tiny Rebel Clwb Tropicana", brewery: "Tiny Rebel", style: "Tropical IPA", abv: 5.5, colors: { primary: "#FF3399", secondary: "#FFE5F2", text: "#1A1A1A" }, imagePath: kegImage("tiny-rebel-clwb"), kegId: "33917" },
{ slug: "vocation-life-death", name: "Vocation Life & Death", brewery: "Vocation Brewery", style: "India Pale Ale", abv: 6.5, colors: { primary: "#1A1A1A", secondary: "#F0F0F0", text: "#D4001A" }, imagePath: kegImage("vocation-life-death"), kegId: "42526" },
{ slug: "vocation-hop-skip", name: "Vocation Hop, Skip & Juice", brewery: "Vocation Brewery", style: "Pale Ale", abv: 5.7, colors: { primary: "#F5A623", secondary: "#FFFAE5", text: "#1A1A1A" }, imagePath: kegImage("vocation-hop-skip") },
diff --git a/src/editor.ts b/src/editor.ts
index 0b8b35e..78ad13d 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.2";
+const EDITOR_VERSION = "0.4.4";
interface DiscoveredDevice {
deviceId: string;
diff --git a/src/perfectdraft-card.ts b/src/perfectdraft-card.ts
index 0d8ba73..b038a3d 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.2";
+const CARD_VERSION = "0.4.4";
const NO_KEG_LABEL = "No keg detected";