From 8e506f77497505682568a58c7cade5e608a17f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Wed, 2 Sep 2020 16:21:59 +0200 Subject: [PATCH] Handle connection drops when upgrading (#6767) --- hassio/src/dashboard/hassio-update.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hassio/src/dashboard/hassio-update.ts b/hassio/src/dashboard/hassio-update.ts index e4cd4dbb07..4af34bb58b 100644 --- a/hassio/src/dashboard/hassio-update.ts +++ b/hassio/src/dashboard/hassio-update.ts @@ -161,8 +161,8 @@ export class HassioUpdate extends LitElement { try { await this.hass.callApi>("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: