From e2c8f9c1ec17d4000e7ea226f9d72932da4662f3 Mon Sep 17 00:00:00 2001 From: Snuffy2 Date: Wed, 27 Nov 2024 22:22:32 -0500 Subject: [PATCH] Fix version update of const.py (#331) --- .github/workflows/version_update_and_zip_on_release.yml | 2 +- custom_components/opnsense/const.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version_update_and_zip_on_release.yml b/.github/workflows/version_update_and_zip_on_release.yml index f44a7f3..1878bc1 100644 --- a/.github/workflows/version_update_and_zip_on_release.yml +++ b/.github/workflows/version_update_and_zip_on_release.yml @@ -25,7 +25,7 @@ jobs: - name: Update Version in const.py if: ${{ github.event_name == 'release' && github.event.release.draft == false }} run: | - sed -i 's/VERSION \= \".*\"/VERSION \= \"${{ github.ref_name }}\"/' ./custom_components/opnsense/const.py + sed -i 's/^VERSION \= \".*\"/VERSION \= \"${{ github.ref_name }}\"/' ./custom_components/opnsense/const.py - name: Update Changelog if: ${{ github.event_name == 'release' && github.event.release.draft == false && github.event.release.prerelease == false }} uses: rhysd/changelog-from-release/action@v3 diff --git a/custom_components/opnsense/const.py b/custom_components/opnsense/const.py index b0ebda7..e3bac1a 100644 --- a/custom_components/opnsense/const.py +++ b/custom_components/opnsense/const.py @@ -39,7 +39,7 @@ DEFAULT_DEVICE_TRACKER_CONSIDER_HOME = 0 CONF_DEVICE_UNIQUE_ID = "device_unique_id" -CONF_FIRMWARE_VERSION = "v0.3.10" +CONF_FIRMWARE_VERSION = "firmware_version" CONF_DEVICES = "devices" CONF_MANUAL_DEVICES = "manual_devices"