forked from platypush/platypush
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.action = action
|
||||
self.origin = origin
|
||||
self.args = {}
|
||||
self.args = args
|
||||
|
||||
@classmethod
|
||||
def build(cls, msg):
|
||||
|
|
|
@ -77,9 +77,6 @@ class LightHuePlugin(LightPlugin):
|
|||
lights = self.lights
|
||||
groups = self.groups
|
||||
|
||||
logging.info('[Attribute: {}] [Values: {}] [Lights: {}] [Groups: {}]'.
|
||||
format(attr, args, lights, groups))
|
||||
|
||||
try:
|
||||
if attr == 'scene':
|
||||
self.bridge.run_scene(groups[0], kwargs['name'])
|
||||
|
|
Loading…
Reference in a new issue