From 1203cb874aaf1ba8e4c6a09bb24005a5c4f51134 Mon Sep 17 00:00:00 2001 From: albaintor <118518828+albaintor@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:53:57 +0200 Subject: [PATCH] Fixed deletion of previous integrations when configuring a new device --- .github/workflows/build.yml | 3 ++- driver.json | 2 +- intg-zidoo/setup_flow.py | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8f8290..3e0f676 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,8 @@ jobs: - name: Fetch all tags to determine version run: | git fetch origin +refs/tags/*:refs/tags/* - echo "VERSION=$(git describe --match "v[0-9]*" --tags HEAD --always)" >> $GITHUB_ENV + echo VERSION="v$(jq .version -r driver.json)" >> $GITHUB_ENV + # echo "VERSION=$(git describe --match "v[0-9]*" --tags HEAD --always)" >> $GITHUB_ENV - name: Verify driver.json version for release build if: contains(github.ref, 'tags/v') diff --git a/driver.json b/driver.json index 3bb0a68..3c9c0ee 100644 --- a/driver.json +++ b/driver.json @@ -1,6 +1,6 @@ { "driver_id": "zidootv_driver", - "version": "1.0.1", + "version": "1.0.2", "min_core_api": "0.20.0", "name": { "en": "Zidoo TV" diff --git a/intg-zidoo/setup_flow.py b/intg-zidoo/setup_flow.py index ca11f7b..af0c41f 100644 --- a/intg-zidoo/setup_flow.py +++ b/intg-zidoo/setup_flow.py @@ -262,8 +262,6 @@ async def _handle_discovery(msg: UserDataResponse) -> RequestUserInput | SetupEr """ global _setup_step - config.devices.clear() # triggers device instance removal - dropdown_items = [] address = msg.input_values["address"]