Skip to content

Commit

Permalink
more qodana warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zim514 committed Feb 12, 2023
1 parent e65a836 commit f2c1fad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script.service.hue/resources/lib/hueconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _discover_nupnp(self):

def _check_bridge_model(self):
bridge = qhue.Bridge(self.bridge_ip, None, timeout=QHUE_TIMEOUT)
model = "" # variable is used
model = "" # variable is used

try:
bridge_config = bridge.config()
Expand Down Expand Up @@ -351,6 +351,7 @@ def create_hue_scene(self):
scene_name = xbmcgui.Dialog().input(_("Scene Name"))

if scene_name:
result = ""
try:
transition_time = int(xbmcgui.Dialog().numeric(0, _("Fade Time (Seconds)"), defaultt="10")) * 10 # yes, default with two ts. *10 to convert secs to msecs
except ValueError:
Expand Down Expand Up @@ -380,6 +381,7 @@ def create_hue_scene(self):
xbmcgui.Dialog().ok(_("Error"), _("ERROR: Scene not created"))

def delete_hue_scene(self):
result = ""
xbmc.log("[script.service.hue] In kodiHue deleteHueScene")
scene = self.select_hue_scene()
if scene is not None:
Expand Down Expand Up @@ -441,6 +443,8 @@ def select_hue_lights(self):
return None

def select_hue_scene(self):
hue_scenes = ""
h_scene_name = ""
xbmc.log("[script.service.hue] In selectHueScene{}")

try:
Expand Down

0 comments on commit f2c1fad

Please sign in to comment.