diff --git a/script.service.hue/resources/lib/hueconnection.py b/script.service.hue/resources/lib/hueconnection.py index 77b4285a..a7b73bab 100644 --- a/script.service.hue/resources/lib/hueconnection.py +++ b/script.service.hue/resources/lib/hueconnection.py @@ -190,6 +190,7 @@ def _discover_bridge_ip(self): def _discover_nupnp(self): xbmc.log("[script.service.hue] In kodiHue discover_nupnp()") + req = "" try: req = requests.get('https://discovery.meethue.com/') result = req.json() @@ -212,7 +213,7 @@ def _discover_nupnp(self): def _check_bridge_model(self): bridge = qhue.Bridge(self.bridge_ip, None, timeout=QHUE_TIMEOUT) - model = "" + model = "" # variable is used try: bridge_config = bridge.config() @@ -233,6 +234,7 @@ def _check_bridge_model(self): return None def _check_version(self): + api_version = "" b = qhue.Bridge(self.bridge_ip, None, timeout=QHUE_TIMEOUT) try: api_version = b.config()['apiversion'] diff --git a/script.service.hue/resources/lib/kodiutils.py b/script.service.hue/resources/lib/kodiutils.py index 08c5941f..c1cd08b6 100644 --- a/script.service.hue/resources/lib/kodiutils.py +++ b/script.service.hue/resources/lib/kodiutils.py @@ -63,7 +63,7 @@ def cache_get(key: str): return data except JSONDecodeError: # Occurs when Cache is empty or unreadable (Eg. Old SimpleCache data still in memory because Kodi hasn't restarted) - #xbmc.log(f"[script.service.hue] cache_get JSONDecodeError: {key}: {data_str}") + # xbmc.log(f"[script.service.hue] cache_get JSONDecodeError: {key}: {data_str}") return None