From d0e7b96ed43f916bb08fc37c8870462cd1b77b75 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 6 Jul 2018 02:34:12 +0200 Subject: [PATCH] Fixed missed self on some of the new constructors --- platypush/plugins/assistant/google/__init__.py | 2 +- platypush/plugins/assistant/google/pushtotalk.py | 2 +- platypush/plugins/camera/pi.py | 2 +- platypush/plugins/gpio/__init__.py | 2 +- platypush/plugins/http/request/__init__.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/platypush/plugins/assistant/google/__init__.py b/platypush/plugins/assistant/google/__init__.py index aebf0815..5fa9e43a 100644 --- a/platypush/plugins/assistant/google/__init__.py +++ b/platypush/plugins/assistant/google/__init__.py @@ -12,7 +12,7 @@ class AssistantGooglePlugin(Plugin): backend to programmatically control the conversation status. """ - def __init__(*args, **kwargs): + def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @action diff --git a/platypush/plugins/assistant/google/pushtotalk.py b/platypush/plugins/assistant/google/pushtotalk.py index ba00f26e..08fa3dd7 100644 --- a/platypush/plugins/assistant/google/pushtotalk.py +++ b/platypush/plugins/assistant/google/pushtotalk.py @@ -12,7 +12,7 @@ class AssistantGooglePushtotalkPlugin(Plugin): :mod:`platypush.backend.assistant.google.pushtotalk` backend. """ - def __init__(*args, **kwargs): + def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @action diff --git a/platypush/plugins/camera/pi.py b/platypush/plugins/camera/pi.py index dbb22df9..d0e4568a 100644 --- a/platypush/plugins/camera/pi.py +++ b/platypush/plugins/camera/pi.py @@ -13,7 +13,7 @@ class CameraPiPlugin(Plugin): to programmatically control the status. """ - def __init__(*args, **kwargs): + def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @action diff --git a/platypush/plugins/gpio/__init__.py b/platypush/plugins/gpio/__init__.py index c4746b28..2fc02705 100644 --- a/platypush/plugins/gpio/__init__.py +++ b/platypush/plugins/gpio/__init__.py @@ -16,7 +16,7 @@ class GpioPlugin(Plugin): * **RPi.GPIO** (`pip install RPi.GPIO`) """ - def __init__(*args, **kwargs): + def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @action diff --git a/platypush/plugins/http/request/__init__.py b/platypush/plugins/http/request/__init__.py index c9ef4388..ce32a2ba 100644 --- a/platypush/plugins/http/request/__init__.py +++ b/platypush/plugins/http/request/__init__.py @@ -39,7 +39,7 @@ class HttpRequestPlugin(Plugin): } """ - def __init__(*args, **kwargs): + def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def _exec(self, method, url, output='text', **kwargs):