From 647a33ea61539ec9d691a0d0f0f2eb75a8934acc Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Thu, 6 Dec 2018 12:15:03 -0600 Subject: [PATCH] Fix `picture-element` card elements (#2202) --- .../lovelace/cards/hui-picture-elements-card.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/panels/lovelace/cards/hui-picture-elements-card.ts b/src/panels/lovelace/cards/hui-picture-elements-card.ts index 96140c94f8..072215f318 100644 --- a/src/panels/lovelace/cards/hui-picture-elements-card.ts +++ b/src/panels/lovelace/cards/hui-picture-elements-card.ts @@ -71,11 +71,13 @@ class HuiPictureElementsCard extends LitElement implements LovelaceCard { .entity="${this._config.entity}" .aspectRatio="${this._config.aspect_ratio}" > - ${ - this._config.elements.map((elementConfig: LovelaceElementConfig) => - this._createHuiElement(elementConfig) - ) - } +
+ ${ + this._config.elements.map((elementConfig: LovelaceElementConfig) => + this._createHuiElement(elementConfig) + ) + } +
`; }