Skip to content

Commit

Permalink
Merge pull request #4 from cgiesche/streamdeck-homeassistant-1
Browse files Browse the repository at this point in the history
Replaced fallback label from "{{state}}" to empty
  • Loading branch information
cgiesche committed Feb 3, 2021
2 parents 0d27f06 + 9e8de22 commit f4cd6eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/plugin/imageUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}})

Expand Down

0 comments on commit f4cd6eb

Please sign in to comment.