mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Cloud login: Wait with navigate until confirm action is done (#23310)
Wait with navigate until confirm action is done
This commit is contained in:
parent
678af025ac
commit
875ab0cb97
@ -233,7 +233,6 @@ export class CloudLogin extends LitElement {
|
||||
const doLogin = async (username: string) => {
|
||||
try {
|
||||
const result = await cloudLogin(this.hass, username, password);
|
||||
fireEvent(this, "ha-refresh-cloud-status");
|
||||
this.email = "";
|
||||
this._password = "";
|
||||
if (result.cloud_pipeline) {
|
||||
@ -250,6 +249,7 @@ export class CloudLogin extends LitElement {
|
||||
setAssistPipelinePreferred(this.hass, result.cloud_pipeline);
|
||||
}
|
||||
}
|
||||
fireEvent(this, "ha-refresh-cloud-status");
|
||||
} catch (err: any) {
|
||||
const errCode = err && err.body && err.body.code;
|
||||
if (errCode === "PasswordChangeRequired") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user