Skip to content

Commit

Permalink
Wait with navigate until confirm action is done
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Dec 16, 2024
1 parent 1fd38d0 commit d8b67fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panels/config/cloud/login/cloud-login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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") {
Expand Down

0 comments on commit d8b67fe

Please sign in to comment.