forked from platypush/platypush
Called parent constructor in ZeroBorg plugin to make sure that the logger instance is initialized
This commit is contained in:
parent
9a43b6cf51
commit
bb21595678
1 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,8 @@ import enum
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
import platypush.plugins.gpio.zeroborg.lib as ZeroBorg
|
||||||
|
|
||||||
from platypush.message.response import Response
|
from platypush.message.response import Response
|
||||||
from platypush.plugins import Plugin
|
from platypush.plugins import Plugin
|
||||||
from platypush.context import get_plugin
|
from platypush.context import get_plugin
|
||||||
|
@ -23,8 +25,8 @@ class GpioZeroborgPlugin(Plugin):
|
||||||
_direction = None
|
_direction = None
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, directions = {}):
|
def __init__(self, directions = {}, *args, **kwargs):
|
||||||
import platypush.plugins.gpio.zeroborg.lib as ZeroBorg
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
self.directions = directions
|
self.directions = directions
|
||||||
self.auto_mode = False
|
self.auto_mode = False
|
||||||
|
|
Loading…
Reference in a new issue