Add credential to user after creation (#21221)

This commit is contained in:
Simon Lamon 2024-06-28 21:08:51 +02:00 committed by GitHub
parent beec720b9b
commit 18a6f8d64d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,6 +290,11 @@ export class DialogAddUser extends LitElement {
}
user.username = this._username;
user.credentials = [
{
type: "homeassistant",
},
];
this._params!.userAddedCallback(user);
this._close();
}