mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
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:
parent
19f94ff8cc
commit
a500b582e3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user