OZW Panel: Don't show an empty wakeup card (#8064)

This commit is contained in:
Charles Garwood 2021-01-04 04:57:25 -05:00 committed by GitHub
parent d5a77ef3cd
commit fab68055bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,11 +141,15 @@ class OZWNodeDashboard extends LitElement {
${this._metadata.metadata.ResetHelp} ${this._metadata.metadata.ResetHelp}
</div> </div>
</ha-card> </ha-card>
<ha-card class="content" header="WakeUp"> ${this._metadata.metadata.WakeupHelp
<div class="card-content"> ? html`
${this._metadata.metadata.WakeupHelp} <ha-card class="content" header="WakeUp">
</div> <div class="card-content">
</ha-card> ${this._metadata.metadata.WakeupHelp}
</div>
</ha-card>
`
: ``}
` `
: ``} : ``}
` `
@ -199,6 +203,10 @@ class OZWNodeDashboard extends LitElement {
margin-top: 24px; margin-top: 24px;
} }
.content:last-child {
margin-bottom: 24px;
}
.sectionHeader { .sectionHeader {
position: relative; position: relative;
padding-right: 40px; padding-right: 40px;