mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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 {
|
try {
|
||||||
await this.hass.callApi<HassioResponse<void>>("POST", item.apiPath);
|
await this.hass.callApi<HassioResponse<void>>("POST", item.apiPath);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Only show an error if the status code was not 504 (timeout reported by proxies)
|
// Only show an error if the status code was not 504, or no status at all (connection terminated)
|
||||||
if (err.status_code !== 504) {
|
if (err.status_code && err.status_code !== 504) {
|
||||||
showAlertDialog(this, {
|
showAlertDialog(this, {
|
||||||
title: "Update failed",
|
title: "Update failed",
|
||||||
text:
|
text:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user