mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Handle connection drops when upgrading (#6767)
This commit is contained in:
parent
c7f8fe1468
commit
8e506f7749
@ -161,8 +161,8 @@ export class HassioUpdate extends LitElement {
|
||||
try {
|
||||
await this.hass.callApi<HassioResponse<void>>("POST", item.apiPath);
|
||||
} catch (err) {
|
||||
// Only show an error if the status code was not 504 (timeout reported by proxies)
|
||||
if (err.status_code !== 504) {
|
||||
// Only show an error if the status code was not 504, or no status at all (connection terminated)
|
||||
if (err.status_code && err.status_code !== 504) {
|
||||
showAlertDialog(this, {
|
||||
title: "Update failed",
|
||||
text:
|
||||
|
Loading…
x
Reference in New Issue
Block a user