Fixed Python 3.5 compatibility for Zeroborg plugin

This commit is contained in:
Fabio Manganiello 2019-12-23 21:40:30 +01:00
parent ff9e1c71a7
commit 36835a1706
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import enum
import threading
import time
from typing import Optional, Dict, List
from typing import Dict, List
from platypush.context import get_bus
from platypush.message.event.zeroborg import ZeroborgDriveEvent, ZeroborgStopEvent
@ -76,7 +76,7 @@ class GpioZeroborgPlugin(Plugin):
self.directions = directions
self._direction = None
self._drive_thread: Optional[threading.Thread] = None
self._drive_thread = None
self._motors = [0, 0, 0, 0]
self.zb = ZeroBorg.ZeroBorg()