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 <paul.bottein@gmail.com>

* Update src/data/update.ts

* Update src/translations/en.json

---------

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
This commit is contained in:
NP v/d Spek 2024-05-22 16:15:17 +02:00 committed by GitHub
parent 19f94ff8cc
commit a500b582e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);