Hide "Show as" separator if there is nothing above/below it (#12219)

This commit is contained in:
Philip Allgaier 2022-04-05 01:44:21 +02:00 committed by GitHub
parent fb4b40b828
commit 4d1ab83b30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,7 +287,10 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
</mwc-list-item>
`
)}
<li divider role="separator"></li>
${this._deviceClassOptions[0].length &&
this._deviceClassOptions[1].length
? html`<li divider role="separator"></li>`
: ""}
${this._deviceClassesSorted(
domain,
this._deviceClassOptions[1],