Don't pass stuff to set_light and set_group that we don't have to
This commit is contained in:
parent
31a2aa67e2
commit
9fd86977c7
1 changed files with 2 additions and 2 deletions
|
@ -118,9 +118,9 @@ class LightHuePlugin(LightPlugin):
|
||||||
if attr == 'scene':
|
if attr == 'scene':
|
||||||
self.bridge.run_scene(groups[0], kwargs.pop('name'))
|
self.bridge.run_scene(groups[0], kwargs.pop('name'))
|
||||||
elif groups:
|
elif groups:
|
||||||
self.bridge.set_group(groups, attr, *args, **kwargs)
|
self.bridge.set_group(groups, attr)
|
||||||
elif lights:
|
elif lights:
|
||||||
self.bridge.set_light(lights, attr, *args, **kwargs)
|
self.bridge.set_light(lights, attr)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Reset bridge connection
|
# Reset bridge connection
|
||||||
self.bridge = None
|
self.bridge = None
|
||||||
|
|
Loading…
Reference in a new issue