Skip to content

Commit

Permalink
Ensure websocket_api error messages shows longer (#18690)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouwh authored Nov 17, 2023
1 parent 9320e8c commit a123692
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/state/connection-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
? "connection lost"
: "unknown error")
}`;
fireEvent(this as any, "hass-notification", { message });
fireEvent(this as any, "hass-notification", {
message,
duration: 10000,
});
}
throw err;
}
Expand Down

0 comments on commit a123692

Please sign in to comment.