Reset bridge connection upon failure
This commit is contained in:
parent
e2b0bf8462
commit
434bc8a5eb
1 changed files with 3 additions and 0 deletions
|
@ -265,6 +265,9 @@ class LightHuePlugin(LightPlugin):
|
||||||
lights = self.lights
|
lights = self.lights
|
||||||
groups = self.groups
|
groups = self.groups
|
||||||
|
|
||||||
|
if not self.bridge:
|
||||||
|
self.connect()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if attr == 'scene':
|
if attr == 'scene':
|
||||||
self.bridge.run_scene(groups[0], kwargs.pop('name'))
|
self.bridge.run_scene(groups[0], kwargs.pop('name'))
|
||||||
|
|
Loading…
Reference in a new issue