diff --git a/hassio/src/update-available/update-available-card.ts b/hassio/src/update-available/update-available-card.ts index 91185d3a587a..f61eb140f5ec 100644 --- a/hassio/src/update-available/update-available-card.ts +++ b/hassio/src/update-available/update-available-card.ts @@ -18,10 +18,7 @@ import "../../../src/components/ha-checkbox"; import "../../../src/components/ha-faded"; import "../../../src/components/ha-icon-button"; import "../../../src/components/ha-markdown"; -import "../../../src/components/ha-settings-row"; import "../../../src/components/ha-svg-icon"; -import "../../../src/components/ha-switch"; -import type { HaSwitch } from "../../../src/components/ha-switch"; import type { HassioAddonDetails } from "../../../src/data/hassio/addon"; import { fetchHassioAddonChangelog, @@ -163,19 +160,6 @@ class UpdateAvailableCard extends LitElement { )}

- ${["core", "addon"].includes(this._updateType) - ? html` -
- - - ${this.supervisor.localize( - "update_available.create_backup" - )} - - - - ` - : nothing} ` : html` => { if (atLeastVersion(hass.config.version, 2021, 2, 4)) { await hass.callWS({ @@ -322,13 +321,11 @@ export const updateHassioAddon = async ( endpoint: `/store/addons/${slug}/update`, method: "post", timeout: null, - data: { backup }, }); } else { await hass.callApi>( "POST", - `hassio/addons/${slug}/update`, - { backup } + `hassio/addons/${slug}/update` ); } }; diff --git a/src/data/supervisor/core.ts b/src/data/supervisor/core.ts index c3264e522547..8eaf8b91d8c0 100644 --- a/src/data/supervisor/core.ts +++ b/src/data/supervisor/core.ts @@ -6,18 +6,15 @@ export const restartCore = async (hass: HomeAssistant) => { await hass.callService("homeassistant", "restart"); }; -export const updateCore = async (hass: HomeAssistant, backup: boolean) => { +export const updateCore = async (hass: HomeAssistant) => { if (atLeastVersion(hass.config.version, 2021, 2, 4)) { await hass.callWS({ type: "supervisor/api", endpoint: "/core/update", method: "post", timeout: null, - data: { backup }, }); } else { - await hass.callApi>("POST", `hassio/core/update`, { - backup, - }); + await hass.callApi>("POST", "hassio/core/update"); } }; diff --git a/src/translations/en.json b/src/translations/en.json index 069c869a711e..02586cbd7022 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1269,7 +1269,6 @@ "clear_skipped": "Clear skipped", "install": "Install", "update": "Update", - "create_backup": "Create backup before updating", "auto_update_enabled_title": "Can not skip version", "auto_update_enabled_text": "Automatic updates for this item have been enabled; skipping it is, therefore, unavailable. You can either install this update now or wait for Home Assistant to do it automatically." }, @@ -8001,8 +8000,7 @@ "update_available": { "update_name": "Update {name}", "open_release_notes": "Open release notes", - "create_backup": "Create backup before updating", - "description": "You have {version} installed. Click update to update to version {newest_version}", + "description": "You have {version} installed. Press update to update to version {newest_version}", "updating": "Updating {name} to version {version}", "no_update": "No update available for {name}" },