Skip to content

Commit

Permalink
Merge pull request #776 from Muenchen-Michi/main
Browse files Browse the repository at this point in the history
fix icon variable in cover-card
  • Loading branch information
Clooos authored Oct 4, 2024
2 parents 4499ed7 + 496416d commit b0b712a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cards/cover/changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function changeStyle(context) {
try {
customStyle = context.config.styles
? Function('hass', 'entity', 'state', 'icon', 'subButtonIcon', 'getWeatherIcon', 'card', `return \`${context.config.styles}\`;`)
(context._hass, context.config.entity, state, context.elements.icon.icon, context.subButtonIcon, getWeatherIcon, context.card)
(context._hass, context.config.entity, state, context.elements.icon, context.subButtonIcon, getWeatherIcon, context.card)
: '';
} catch (error) {
throw new Error(`Error in generating cover custom templates: ${error.message}`);
Expand Down

0 comments on commit b0b712a

Please sign in to comment.