Properly mark Plex update sensor when current (#113197)

This commit is contained in:
jjlawren 2024-03-12 23:06:33 -05:00 committed by GitHub
parent a2a8a8f119
commit e5ba4dbde9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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