Added call to parent constructor in the remaining plugins

This commit is contained in:
Fabio Manganiello 2018-07-06 02:26:54 +02:00
parent eb229a6fbe
commit c0b1b70e4e
3 changed files with 9 additions and 0 deletions

View file

@ -11,6 +11,9 @@ class MqttPlugin(Plugin):
with the MQTT protocol, see http://mqtt.org/
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@action
def send_message(self, topic, msg, host, port=1883, *args, **kwargs):
"""

View file

@ -17,6 +17,9 @@ class PushbulletPlugin(Plugin):
* **requests** (``pip install requests``)
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@action
def send_push(self, **kwargs):
"""

View file

@ -12,6 +12,9 @@ class RedisPlugin(Plugin):
* **redis** (``pip install redis``)
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@action
def send_message(self, queue, msg, *args, **kwargs):
"""