diff --git a/src/panels/lovelace/hui-root.js b/src/panels/lovelace/hui-root.js index d0a048c761..dae350078d 100644 --- a/src/panels/lovelace/hui-root.js +++ b/src/panels/lovelace/hui-root.js @@ -198,6 +198,7 @@ class HUIRoot extends NavigateMixin(EventsMixin(PolymerElement)) { } let view; + let background = this.config.background || ''; if (viewIndex === 'unused') { view = document.createElement('hui-unused-entities'); @@ -211,8 +212,11 @@ class HUIRoot extends NavigateMixin(EventsMixin(PolymerElement)) { view.config = viewConfig; view.columns = this.columns; } + if (viewConfig.background) background = viewConfig.background; } + this.$.view.style.background = background; + view.hass = this.hass; root.appendChild(view); } diff --git a/src/panels/lovelace/hui-unused-entities.js b/src/panels/lovelace/hui-unused-entities.js index 27abdb7320..28a88264e5 100644 --- a/src/panels/lovelace/hui-unused-entities.js +++ b/src/panels/lovelace/hui-unused-entities.js @@ -12,7 +12,8 @@ class HuiUnusedEntities extends PolymerElement {