Disable local only option for system generated users (#10827)

This commit is contained in:
Paulus Schoutsen 2021-12-09 02:22:32 -08:00 committed by GitHub
parent 0a7b703d57
commit 7039bae9be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,7 @@ class DialogUserDetail extends LitElement {
.dir=${computeRTLDirection(this.hass)} .dir=${computeRTLDirection(this.hass)}
> >
<ha-switch <ha-switch
.disabled=${user.system_generated}
.checked=${this._localOnly} .checked=${this._localOnly}
@change=${this._localOnlyChanged} @change=${this._localOnlyChanged}
> >