Skip to content

Commit

Permalink
Check against HACS version (#3425)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jan 1, 2024
1 parent 2ceffca commit 87994aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hacs/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 87994aa

Please sign in to comment.