From 115fb59a070d4f01ab7665d181407f93455c293d Mon Sep 17 00:00:00 2001 From: zim514 Date: Sat, 20 Jul 2024 13:53:36 -0400 Subject: [PATCH] Don't connect forever when bridge settings change --- .github/workflows/release.yml | 2 +- script.service.hue/addon.xml | 5 ++--- script.service.hue/resources/lib/core.py | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afbd64fe..64ef86ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.8' cache: 'pip' - name: Install dependencies diff --git a/script.service.hue/addon.xml b/script.service.hue/addon.xml index 750a1a3b..638ac544 100644 --- a/script.service.hue/addon.xml +++ b/script.service.hue/addon.xml @@ -26,9 +26,8 @@ - Sunrise is now manually configured (Default 8AM) - Removed some unnecessary settings - Refactoring and code improvements - - Fix morning / sunset timers - - Various bug fixes - - Localisation updates from Weblate +- Many bug fixes +- Localisation updates from Weblate Automatitza les llums Hue amb la reproducció de Kodi diff --git a/script.service.hue/resources/lib/core.py b/script.service.hue/resources/lib/core.py index a09e353a..6a435a11 100644 --- a/script.service.hue/resources/lib/core.py +++ b/script.service.hue/resources/lib/core.py @@ -105,6 +105,7 @@ def run(self): # Check if the bridge settings have changed, if so, reconnect the bridge if BRIDGE_SETTINGS_CHANGED.is_set(): self.bridge.connect() + BRIDGE_SETTINGS_CHANGED.clear() #Process pending action commands self._process_action()