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 time
|
||||
|
||||
import platypush.plugins.gpio.zeroborg.lib as ZeroBorg
|
||||
|
||||
from platypush.message.response import Response
|
||||
from platypush.plugins import Plugin
|
||||
from platypush.context import get_plugin
|
||||
|
@ -23,8 +25,8 @@ class GpioZeroborgPlugin(Plugin):
|
|||
_direction = None
|
||||
|
||||
|
||||
def __init__(self, directions = {}):
|
||||
import platypush.plugins.gpio.zeroborg.lib as ZeroBorg
|
||||
def __init__(self, directions = {}, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
self.directions = directions
|
||||
self.auto_mode = False
|
||||
|
|
Loading…
Reference in a new issue