From 87994aaba418f119af1f33530c423211179debac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Mon, 1 Jan 2024 12:49:34 +0100 Subject: [PATCH] Check against HACS version (#3425) --- custom_components/hacs/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/hacs/update.py b/custom_components/hacs/update.py index 8ba6d10a8fd..163aed5d986 100644 --- a/custom_components/hacs/update.py +++ b/custom_components/hacs/update.py @@ -103,7 +103,7 @@ async def _ensure_capabilities(self, version: str | None, **kwargs: Any) -> None raise HomeAssistantError( f"This version requires Home Assistant {target_manifest.homeassistant} or newer." ) - if target_manifest.hacs is not None and self.hacs.core.ha_version < target_manifest.hacs: + if target_manifest.hacs is not None and self.hacs.version < target_manifest.hacs: raise HomeAssistantError(f"This version requires HACS {target_manifest.hacs} or newer.") async def async_install(self, version: str | None, backup: bool, **kwargs: Any) -> None: