diff --git a/platypush/plugins/gpio/zeroborg/__init__.py b/platypush/plugins/gpio/zeroborg/__init__.py index 9492aa5f9..3dab8d1a2 100644 --- a/platypush/plugins/gpio/zeroborg/__init__.py +++ b/platypush/plugins/gpio/zeroborg/__init__.py @@ -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()