Fixed conditional card state on 1st render (#1537)

* Fixed conditional card state on 1st render

* Moved method to correct location
This commit is contained in:
Marius 2018-08-03 14:03:28 +03:00 committed by Paulus Schoutsen
parent 255ea41648
commit b432324159

View File

@ -51,6 +51,7 @@ class HuiConditionalCard extends PolymerElement {
const element = createCardElement(config.card); const element = createCardElement(config.card);
element.hass = this.hass; element.hass = this.hass;
root.appendChild(element); root.appendChild(element);
if (this.hass) this._hassChanged(this.hass);
} }
getCardSize() { getCardSize() {