Stupid mistake

This commit is contained in:
Zack Arnett 2020-02-16 12:15:56 -05:00
parent 67706a312d
commit 30e5611812

View File

@ -79,6 +79,8 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
`; `;
} }
const picture = this._image || "../static/images/card_media_player_bg.png";
return html` return html`
<ha-card> <ha-card>
<div <div
@ -89,7 +91,7 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
> >
<div <div
class="image" class="image"
style="background-image: url(${this.hass.hassUrl(this._image)})" style="background-image: url(${this.hass.hassUrl(picture)})"
></div> ></div>
<div <div
class="${classMap({ class="${classMap({
@ -295,7 +297,6 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
background-repeat: no-repeat; background-repeat: no-repeat;
background-color: var(--primary-color); background-color: var(--primary-color);
background-size: initial; background-size: initial;
background-image: "url(../static/images/card_media_player_bg.png)";
} }
.no-image > .caption { .no-image > .caption {