diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b97628446d..f1882fd0c59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,8 +23,10 @@ jobs: - name: "Set version number" run: | + sed -i "/MINIMUM_HA_VERSION = /c\MINIMUM_HA_VERSION = \"$(jq .homeassistant -r ${{ github.workspace }}/hacs.json)\"" ${{ github.workspace }}/custom_components/hacs/const.py python3 ${{ github.workspace }}/manage/update_manifest.py --version ${{ steps.version.outputs.version }} + # Pack the HACS dir as a zip and upload to the release - name: ZIP HACS Dir run: | diff --git a/custom_components/hacs/const.py b/custom_components/hacs/const.py index 5befadeb39a..0a6bb054f05 100644 --- a/custom_components/hacs/const.py +++ b/custom_components/hacs/const.py @@ -5,7 +5,7 @@ NAME_SHORT = "HACS" DOMAIN = "hacs" CLIENT_ID = "395a8e669c5de9f7c6e8" -MINIMUM_HA_VERSION = "2021.2.0" +MINIMUM_HA_VERSION = "0.0.0" PROJECT_URL = "https://github.com/hacs/integration/" diff --git a/tests/tasks/test_check_constrains.py b/tests/tasks/test_check_constrains.py index 2524688b92e..6a24bd38dbc 100644 --- a/tests/tasks/test_check_constrains.py +++ b/tests/tasks/test_check_constrains.py @@ -39,7 +39,7 @@ async def test_check_constrains_version(hacs: HacsBase, caplog: pytest.LogCaptur await task.execute_task() assert not hacs.system.disabled - hacs.core.ha_version = "1" + hacs.core.ha_version = "0" with patch("os.path.exists", return_value=False): await task.execute_task() assert hacs.system.disabled