Passing arguments to the plugin
This commit is contained in:
parent
339e7b73a5
commit
1a6d726b19
2 changed files with 1 additions and 4 deletions
|
@ -17,7 +17,7 @@ class Request(Message):
|
||||||
self.target = target
|
self.target = target
|
||||||
self.action = action
|
self.action = action
|
||||||
self.origin = origin
|
self.origin = origin
|
||||||
self.args = {}
|
self.args = args
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def build(cls, msg):
|
def build(cls, msg):
|
||||||
|
|
|
@ -77,9 +77,6 @@ class LightHuePlugin(LightPlugin):
|
||||||
lights = self.lights
|
lights = self.lights
|
||||||
groups = self.groups
|
groups = self.groups
|
||||||
|
|
||||||
logging.info('[Attribute: {}] [Values: {}] [Lights: {}] [Groups: {}]'.
|
|
||||||
format(attr, args, lights, groups))
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if attr == 'scene':
|
if attr == 'scene':
|
||||||
self.bridge.run_scene(groups[0], kwargs['name'])
|
self.bridge.run_scene(groups[0], kwargs['name'])
|
||||||
|
|
Loading…
Reference in a new issue