mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Add Description of chosen
This commit is contained in:
parent
c86ed1fb3e
commit
a27dd1e7f1
@ -285,13 +285,39 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
|||||||
</mwc-formfield>
|
</mwc-formfield>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
${this._disabledBy !== null
|
||||||
|
? html`
|
||||||
|
<div class="secondary">
|
||||||
|
${this.hass.localize(
|
||||||
|
"ui.dialogs.entity_registry.editor.enabled_description"
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
: this._hiddenBy !== null
|
||||||
|
? html`
|
||||||
|
<div class="secondary">
|
||||||
|
${this.hass.localize(
|
||||||
|
"ui.dialogs.entity_registry.editor.hidden_description"
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
: ""}
|
||||||
${this.entry.device_id
|
${this.entry.device_id
|
||||||
? html`
|
? html`
|
||||||
<p>
|
<ha-area-picker
|
||||||
|
.hass=${this.hass}
|
||||||
|
.value=${this._areaId}
|
||||||
|
.placeholder=${this._device?.area_id}
|
||||||
|
.label=${this.hass.localize(
|
||||||
|
"ui.dialogs.entity_registry.editor.area"
|
||||||
|
)}
|
||||||
|
@value-changed=${this._areaPicked}
|
||||||
|
></ha-area-picker>
|
||||||
|
<div class="secondary">
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.dialogs.entity_registry.editor.area_note"
|
"ui.dialogs.entity_registry.editor.area_note"
|
||||||
)}
|
)}
|
||||||
</p>
|
</div>
|
||||||
${this._areaId
|
${this._areaId
|
||||||
? html`<mwc-button @click=${this._clearArea}
|
? html`<mwc-button @click=${this._clearArea}
|
||||||
>${this.hass.localize(
|
>${this.hass.localize(
|
||||||
@ -305,15 +331,6 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
|||||||
)}</mwc-button
|
)}</mwc-button
|
||||||
>`
|
>`
|
||||||
: ""}
|
: ""}
|
||||||
<ha-area-picker
|
|
||||||
.hass=${this.hass}
|
|
||||||
.value=${this._areaId}
|
|
||||||
.placeholder=${this._device?.area_id}
|
|
||||||
.label=${this.hass.localize(
|
|
||||||
"ui.dialogs.entity_registry.editor.area"
|
|
||||||
)}
|
|
||||||
@value-changed=${this._areaPicked}
|
|
||||||
></ha-area-picker>
|
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
</ha-expansion-panel>
|
</ha-expansion-panel>
|
||||||
@ -515,7 +532,7 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
|||||||
.label {
|
.label {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
p {
|
.secondary {
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
width: 340px;
|
width: 340px;
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,6 @@
|
|||||||
"hidden_by": {
|
"hidden_by": {
|
||||||
"user": "User",
|
"user": "User",
|
||||||
"integration": "Integration",
|
"integration": "Integration",
|
||||||
"config_entry": "Config entry",
|
|
||||||
"device": "Device"
|
"device": "Device"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user