Fix picture-element card elements (#2202)

This commit is contained in:
Ian Richardson 2018-12-06 12:15:03 -06:00 committed by Paulus Schoutsen
parent 64d59fedc8
commit 647a33ea61

View File

@ -71,11 +71,13 @@ class HuiPictureElementsCard extends LitElement implements LovelaceCard {
.entity="${this._config.entity}" .entity="${this._config.entity}"
.aspectRatio="${this._config.aspect_ratio}" .aspectRatio="${this._config.aspect_ratio}"
></hui-image> ></hui-image>
<div id="root">
${ ${
this._config.elements.map((elementConfig: LovelaceElementConfig) => this._config.elements.map((elementConfig: LovelaceElementConfig) =>
this._createHuiElement(elementConfig) this._createHuiElement(elementConfig)
) )
} }
</div>
</ha-card> </ha-card>
`; `;
} }