mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Ignore more proxy disconnect codes (#6805)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
9aa8175e23
commit
509481ef06
@ -164,8 +164,9 @@ 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, or no status at all (connection terminated)
|
// Only show an error if the status code was not expected (user behind proxy)
|
||||||
if (err.status_code && err.status_code !== 504) {
|
// or no status at all(connection terminated)
|
||||||
|
if (err.status_code && ![502, 503, 504].includes(err.status_code)) {
|
||||||
showAlertDialog(this, {
|
showAlertDialog(this, {
|
||||||
title: "Update failed",
|
title: "Update failed",
|
||||||
text: extractApiErrorMessage(err),
|
text: extractApiErrorMessage(err),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user