Allow unhiding entity hidden by integration (#19753)

This commit is contained in:
karwosts 2024-02-22 04:42:15 -05:00 committed by GitHub
parent b360c854a8
commit a6d73f7615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -939,9 +939,7 @@ export class EntityRegistrySettingsEditor extends LitElement {
> >
<ha-switch <ha-switch
.checked=${!this._disabledBy && !this._hiddenBy} .checked=${!this._disabledBy && !this._hiddenBy}
.disabled=${this.disabled || .disabled=${this.disabled || this._disabledBy}
this._disabledBy ||
(this._hiddenBy && this._hiddenBy !== "user")}
@change=${this._hiddenChanged} @change=${this._hiddenChanged}
></ha-switch> ></ha-switch>
</ha-settings-row> </ha-settings-row>