1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Ignore error if we are not connected (#8472)

This commit is contained in:
Joakim Sørensen
2021-02-26 21:37:06 +01:00
committed by GitHub
parent 0bc2eb530d
commit 01e4414d17
4 changed files with 22 additions and 12 deletions

View File

@@ -342,10 +342,12 @@ class HassioHostInfo extends LitElement {
await updateOS(this.hass);
fireEvent(this, "supervisor-colllection-refresh", { colllection: "os" });
} catch (err) {
showAlertDialog(this, {
title: "Failed to update",
text: extractApiErrorMessage(err),
});
if (this.hass.connection.connected) {
showAlertDialog(this, {
title: "Failed to update",
text: extractApiErrorMessage(err),
});
}
}
button.progress = false;
}