Properly mark Plex update sensor when current (#113197)
This commit is contained in:
parent
a2a8a8f119
commit
e5ba4dbde9
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ class PlexUpdate(UpdateEntity):
|
|||
self._attr_installed_version = self.plex_server.version
|
||||
try:
|
||||
if (release := self.plex_server.checkForUpdate()) is None:
|
||||
self._attr_latest_version = self.installed_version
|
||||
return
|
||||
except (requests.exceptions.RequestException, PlexApiException):
|
||||
_LOGGER.debug("Polling update sensor failed, will try again")
|
||||
|
|
Loading…
Add table
Reference in a new issue