mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Properly mark Plex update sensor when current (#113197)
This commit is contained in:
parent
a2a8a8f119
commit
e5ba4dbde9
@ -53,6 +53,7 @@ class PlexUpdate(UpdateEntity):
|
|||||||
self._attr_installed_version = self.plex_server.version
|
self._attr_installed_version = self.plex_server.version
|
||||||
try:
|
try:
|
||||||
if (release := self.plex_server.checkForUpdate()) is None:
|
if (release := self.plex_server.checkForUpdate()) is None:
|
||||||
|
self._attr_latest_version = self.installed_version
|
||||||
return
|
return
|
||||||
except (requests.exceptions.RequestException, PlexApiException):
|
except (requests.exceptions.RequestException, PlexApiException):
|
||||||
_LOGGER.debug("Polling update sensor failed, will try again")
|
_LOGGER.debug("Polling update sensor failed, will try again")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user