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

View file

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