From a500b582e348304509bc2d165807c6d66c974973 Mon Sep 17 00:00:00 2001 From: NP v/d Spek Date: Wed, 22 May 2024 16:15:17 +0200 Subject: [PATCH] Modify the way the update shows available updates (#20773) * Modify the way the update shows available updates * Update src/data/update.ts Co-authored-by: Paul Bottein * Update src/data/update.ts * Update src/translations/en.json --------- Co-authored-by: Paul Bottein --- src/data/update.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/data/update.ts b/src/data/update.ts index f123686799..13c4b0d028 100644 --- a/src/data/update.ts +++ b/src/data/update.ts @@ -158,7 +158,7 @@ export const checkForEntityUpdates = async ( // When updating, and entity does not support % show "Installing" // When updating, and entity does support % show "Installing (xx%)" -// When update available, show the version +// When update available, show "Update available" // When the latest version is skipped, show the latest version // When update is not available, show "Up-to-date" // When update is not available and there is no latest_version show "Unavailable" @@ -191,10 +191,6 @@ export const computeUpdateStateDisplay = ( } return hass.localize("ui.card.update.installing"); } - - if (attributes.latest_version) { - return attributes.latest_version; - } } return hass.formatEntityState(stateObj);