Skip to content

Commit

Permalink
Don't connect forever when bridge settings change
Browse files Browse the repository at this point in the history
  • Loading branch information
zim514 committed Jul 20, 2024
1 parent a62c2d7 commit 115fb59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions script.service.hue/addon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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

</news>
<summary lang="ca_ES">Automatitza les llums Hue amb la reproducció de Kodi</summary>
Expand Down
1 change: 1 addition & 0 deletions script.service.hue/resources/lib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 115fb59

Please sign in to comment.