Imported ZeroBorg library with scope constructor as global import fails for some reason
This commit is contained in:
parent
6247488450
commit
1bc4c47df7
1 changed files with 1 additions and 2 deletions
|
@ -2,8 +2,6 @@ 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
|
||||||
|
@ -26,6 +24,7 @@ class GpioZeroborgPlugin(Plugin):
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, directions = {}, *args, **kwargs):
|
def __init__(self, directions = {}, *args, **kwargs):
|
||||||
|
import platypush.plugins.gpio.zeroborg.lib as ZeroBorg
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
self.directions = directions
|
self.directions = directions
|
||||||
|
|
Loading…
Reference in a new issue