From 9e8de2251908ebb923c51ab36ae4a6d3cab9f249 Mon Sep 17 00:00:00 2001 From: Christoph Giesche Date: Wed, 3 Feb 2021 21:34:12 +0100 Subject: [PATCH] Replaced fallback label from "{{state}}" to empty (caused switches to show state as text). --- public/manifest.json | 2 +- src/modules/plugin/imageUtils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/manifest.json b/public/manifest.json index b6e77e4..1a2659b 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -24,7 +24,7 @@ "Name": "Home Assistant", "Icon": "images/ha-button", "URL": "https://github.com/cgiesche/streamdeck-homeassistant", - "Version": "1.0", + "Version": "1.0.2", "OS": [ { "Platform": "mac", diff --git a/src/modules/plugin/imageUtils.js b/src/modules/plugin/imageUtils.js index 09ca9d1..00e08a4 100644 --- a/src/modules/plugin/imageUtils.js +++ b/src/modules/plugin/imageUtils.js @@ -218,7 +218,7 @@ const Icon = { }, labelledIcon: (state, attributes, templates = {}, image = "", labelTopOffset = 30) => { - const line1 = new Handlebars.compile(templates.line1 || "{{state}}")({...{state}, ...attributes, ...{colors}}) + const line1 = new Handlebars.compile(templates.line1 || "")({...{state}, ...attributes, ...{colors}}) const line2 = new Handlebars.compile(templates.line2 || "")({...{state}, ...attributes, ...{colors}}) const line3 = new Handlebars.compile(templates.line3 || "")({...{state}, ...attributes, ...{colors}})