From 1a6d726b190247253ddef0f3679c149e615a7428 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 17 Dec 2017 16:41:52 +0100 Subject: [PATCH] Passing arguments to the plugin --- platypush/message/request/__init__.py | 2 +- platypush/plugins/light/hue/__init__.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/platypush/message/request/__init__.py b/platypush/message/request/__init__.py index 22a1f74c5b..f88ba7eb7e 100644 --- a/platypush/message/request/__init__.py +++ b/platypush/message/request/__init__.py @@ -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): diff --git a/platypush/plugins/light/hue/__init__.py b/platypush/plugins/light/hue/__init__.py index f8848ceb09..000632d045 100644 --- a/platypush/plugins/light/hue/__init__.py +++ b/platypush/plugins/light/hue/__init__.py @@ -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'])