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 aebf08152..5fa9e43ae 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 ba00f26ed..08fa3dd7a 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 dbb22df9f..d0e4568aa 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 c4746b28b..2fc02705c 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 c9ef4388a..ce32a2bad 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):