Skip to content

Commit

Permalink
v2.0.11
Browse files Browse the repository at this point in the history
- Fix schedule / activation checks
- Fix Music support
  • Loading branch information
zim514 committed Sep 26, 2024
1 parent b5262ba commit 34cbc9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 4 additions & 8 deletions script.service.hue/addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="script.service.hue" name="Hue Service" provider-name="zim514" version="2.0.10">
<addon id="script.service.hue" name="Hue Service" provider-name="zim514" version="2.0.11">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.requests" version="2.31.0"/>
Expand All @@ -20,13 +20,9 @@
</assets>
<source>https://github.com/zim514/script.service.hue</source>
<forum>https://forum.kodi.tv/showthread.php?tid=344886</forum>
<news>v2.0.0
- Hue API V2 support (requires reconfiguration of scenes and ambilight)
- Now uses standard scenes
- Sunrise is now manually configured (Default 8AM)
- Removed some unnecessary settings
- Refactoring and code improvements
- Many bug fixes
<news>v2.0.11
- Fix schedule / activation checks
- Fix Music support
- Localisation updates from Weblate

</news>
Expand Down
7 changes: 3 additions & 4 deletions script.service.hue/resources/lib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
import threading
from datetime import datetime, timedelta, date

import xbmc

from . import ADDON, AMBI_RUNNING, BRIDGE_SETTINGS_CHANGED
from . import ADDON, AMBI_RUNNING, BRIDGE_SETTINGS_CHANGED, KODIVERSION, ADDONVERSION
from . import lightgroup, ambigroup, settings
from .hue import Hue
from .kodiutils import notification, cache_set, cache_get, log
Expand Down Expand Up @@ -41,7 +40,7 @@ def __init__(self, settings_monitor):
}

def handle_command(self, command, *args):
log(f"[SCRIPT.SERVICE.HUE] Started with {command}, Python: {sys.version}")
log(f"[SCRIPT.SERVICE.HUE] Started with {command}, Kodi: {KODIVERSION}, Addon: {ADDONVERSION}, Python: {sys.version}")

Check warning on line 43 in script.service.hue/resources/lib/core.py

View workflow job for this annotation

GitHub Actions / Qodana for Python

Line is longer than allowed by code style

Line is longer than allowed by code style (\> 120 columns)
command_func = self.commands.get(command)

if command_func:
Expand Down Expand Up @@ -88,7 +87,7 @@ def __init__(self, settings_monitor):
cache_set("service_enabled", True)

def run(self):
log(f"[SCRIPT.SERVICE.HUE] Starting Hue Service, Python: {sys.version}")
log(f"[SCRIPT.SERVICE.HUE] Starting Hue Service, Kodi: {KODIVERSION}, Addon: {ADDONVERSION}, Python: {sys.version}")

Check warning on line 90 in script.service.hue/resources/lib/core.py

View workflow job for this annotation

GitHub Actions / Qodana for Python

Line is longer than allowed by code style

Line is longer than allowed by code style (\> 120 columns)
self.light_groups = self.initialize_light_groups()
self.timers = Timers(self.settings_monitor, self.bridge, self)

Expand Down

0 comments on commit 34cbc9e

Please sign in to comment.