Set data as property. (#5263)

This commit is contained in:
Paulus Schoutsen 2020-03-18 12:27:44 -07:00 committed by GitHub
parent a8d21c6112
commit 16cadd53cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,13 +84,13 @@ class HUIRoot extends LitElement {
protected render(): TemplateResult {
return html`
<app-route .route="${this.route}" pattern="/:view" data="${
<app-route .route=${this.route} pattern="/:view" .data=${
this._routeData
}" @data-changed="${this._routeDataChanged}"></app-route>
} @data-changed=${this._routeDataChanged}></app-route>
<ha-app-layout id="layout">
<app-header slot="header" effects="waterfall" class="${classMap({
<app-header slot="header" effects="waterfall" class=${classMap({
"edit-mode": this._editMode,
})}" fixed condenses>
})} fixed condenses>
${
this._editMode
? html`