Skip to content

Commit

Permalink
Fix update entity not sticking with skipped version (home-assistant#7…
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Apr 26, 2022
1 parent 89e3a48 commit f84c332
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions homeassistant/components/update/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,11 @@ def state_attributes(self) -> dict[str, Any] | None:
# Clear skipped version in case it matches the current installed
# version or the latest version diverged.
if (
self.__skipped_version == self.installed_version
or self.__skipped_version != self.latest_version
self.installed_version is not None
and self.__skipped_version == self.installed_version
) or (
self.latest_version is not None
and self.__skipped_version != self.latest_version
):
self.__skipped_version = None

Expand Down

0 comments on commit f84c332

Please sign in to comment.