forked from platypush/platypush
Added call to parent constructor in the remaining plugins
This commit is contained in:
parent
eb229a6fbe
commit
c0b1b70e4e
3 changed files with 9 additions and 0 deletions
|
@ -11,6 +11,9 @@ class MqttPlugin(Plugin):
|
||||||
with the MQTT protocol, see http://mqtt.org/
|
with the MQTT protocol, see http://mqtt.org/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
@action
|
@action
|
||||||
def send_message(self, topic, msg, host, port=1883, *args, **kwargs):
|
def send_message(self, topic, msg, host, port=1883, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -17,6 +17,9 @@ class PushbulletPlugin(Plugin):
|
||||||
* **requests** (``pip install requests``)
|
* **requests** (``pip install requests``)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
@action
|
@action
|
||||||
def send_push(self, **kwargs):
|
def send_push(self, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -12,6 +12,9 @@ class RedisPlugin(Plugin):
|
||||||
* **redis** (``pip install redis``)
|
* **redis** (``pip install redis``)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
@action
|
@action
|
||||||
def send_message(self, queue, msg, *args, **kwargs):
|
def send_message(self, queue, msg, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue