mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Ignore 504 errors while updating (#6743)
This commit is contained in:
parent
448e9b71b8
commit
d8e88bc58d
@ -161,11 +161,18 @@ export class HassioUpdate extends LitElement {
|
|||||||
try {
|
try {
|
||||||
await this.hass.callApi<HassioResponse<void>>("POST", item.apiPath);
|
await this.hass.callApi<HassioResponse<void>>("POST", item.apiPath);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
showAlertDialog(this, {
|
// Only show an error if the status code was not 504 (timeout reported by proxies)
|
||||||
title: "Update failed",
|
if (err.status_code !== 504) {
|
||||||
text:
|
showAlertDialog(this, {
|
||||||
typeof err === "object" ? err.body?.message || "Unkown error" : err,
|
title: "Update failed",
|
||||||
});
|
text:
|
||||||
|
typeof err === "object"
|
||||||
|
? typeof err.body === "object"
|
||||||
|
? err.body.message
|
||||||
|
: err.body || "Unkown error"
|
||||||
|
: err,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
item.progress = false;
|
item.progress = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user