Passing arguments to the plugin

This commit is contained in:
Fabio Manganiello 2017-12-17 16:41:52 +01:00
parent 339e7b73a5
commit 1a6d726b19
2 changed files with 1 additions and 4 deletions

View file

@ -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):

View file

@ -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'])