From 36835a1706588c44482236e7c9c5ce43b1f3b33d Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 23 Dec 2019 21:40:30 +0100 Subject: [PATCH] Fixed Python 3.5 compatibility for Zeroborg plugin --- platypush/plugins/gpio/zeroborg/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/gpio/zeroborg/__init__.py b/platypush/plugins/gpio/zeroborg/__init__.py index 9492aa5f99..3dab8d1a24 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()