Ensure websocket_api error messages shows longer (#18690)

This commit is contained in:
Jan Bouwhuis 2023-11-17 20:35:08 +01:00 committed by GitHub
parent 9320e8c1a3
commit a1236924aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,10 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
? "connection lost" ? "connection lost"
: "unknown error") : "unknown error")
}`; }`;
fireEvent(this as any, "hass-notification", { message }); fireEvent(this as any, "hass-notification", {
message,
duration: 10000,
});
} }
throw err; throw err;
} }