mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Hide scenes from device info page when no entities (#5647)
This commit is contained in:
parent
f3e88f6f2e
commit
ae10330844
@ -317,16 +317,14 @@ export class HaConfigDevicePage extends LitElement {
|
||||
</div>
|
||||
<div class="column">
|
||||
${
|
||||
isComponentLoaded(this.hass, "scene")
|
||||
isComponentLoaded(this.hass, "scene") && entities.length
|
||||
? html`
|
||||
<ha-card>
|
||||
<div class="card-header">
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.devices.scene.scenes"
|
||||
)}
|
||||
${
|
||||
entities.length
|
||||
? html`
|
||||
|
||||
<paper-icon-button
|
||||
@click=${this._createScene}
|
||||
title=${this.hass.localize(
|
||||
@ -334,9 +332,6 @@ export class HaConfigDevicePage extends LitElement {
|
||||
)}
|
||||
icon="hass:plus-circle"
|
||||
></paper-icon-button>
|
||||
`
|
||||
: ""
|
||||
}
|
||||
</div>
|
||||
|
||||
${
|
||||
|
Loading…
x
Reference in New Issue
Block a user