From 9b8a1e1a9323e0333f7e21d41c9d1f9fcfc58165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 18 Nov 2023 19:01:25 +0100 Subject: [PATCH] Clear version data when updated (#3355) --- custom_components/hacs/update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/hacs/update.py b/custom_components/hacs/update.py index 10a87a24dba..9d0727859c6 100644 --- a/custom_components/hacs/update.py +++ b/custom_components/hacs/update.py @@ -122,6 +122,8 @@ async def async_install(self, version: str | None, backup: bool, **kwargs: Any) f"Downloading {self.repository.data.full_name} with version {version or self.repository.data.last_version or self.repository.data.last_commit} failed with ({exception})" ) from exception finally: + self.repository.data.selected_tag = None + self.repository.force_branch = False self._update_in_progress(progress=False) async def async_release_notes(self) -> str | None: