diff --git a/src/components/ha-cards.html b/src/components/ha-cards.html
index ea9b64cb02..7f5f934989 100644
--- a/src/components/ha-cards.html
+++ b/src/components/ha-cards.html
@@ -128,20 +128,27 @@
type: Object,
},
+ paneVisible: {
+ type: Boolean,
+ },
+
cards: {
type: Object,
},
},
observers: [
- 'updateCards(columns, states, showIntroduction)',
+ 'updateCards(columns, states, showIntroduction, paneVisible)',
],
- updateCards: function (columns, states, showIntroduction) {
+ updateCards: function (columns, states, showIntroduction, paneVisible) {
+ if (!paneVisible) {
+ return;
+ }
this.debounce(
'updateCards',
- function () { this.cards = this.computeCards(columns, states, showIntroduction); },
- 0
+ function () { this.cards = this.computeCards(columns, states,
+ showIntroduction); }
);
},
diff --git a/src/layouts/home-assistant-main.html b/src/layouts/home-assistant-main.html
index b5de397fce..0bc3bc0da2 100644
--- a/src/layouts/home-assistant-main.html
+++ b/src/layouts/home-assistant-main.html
@@ -30,6 +30,7 @@
attr-for-selected='id'
fallback-selection='panel-resolver'
selected='[[activePane]]'
+ selected-attribute='pane-visible'
>
@@ -77,6 +80,11 @@ Polymer({
value: false,
},
+ paneVisible: {
+ type: Boolean,
+ value: false,
+ },
+
isFetching: {
type: Boolean,
bindNuclear: function (hass) {