From f6d69869ff98e0a663c32e051b3dd0bc46002867 Mon Sep 17 00:00:00 2001 From: imbeacon Date: Fri, 6 Dec 2024 08:40:06 +0200 Subject: [PATCH] Removed twisted module as not used in new connector implementation --- thingsboard_gateway/connectors/modbus/modbus_connector.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/thingsboard_gateway/connectors/modbus/modbus_connector.py b/thingsboard_gateway/connectors/modbus/modbus_connector.py index a675ebfc..ed0898d7 100644 --- a/thingsboard_gateway/connectors/modbus/modbus_connector.py +++ b/thingsboard_gateway/connectors/modbus/modbus_connector.py @@ -58,12 +58,6 @@ TBUtility.install_package('pyserial') TBUtility.install_package('pyserial-asyncio') -try: - from twisted.internet import reactor -except ImportError: - TBUtility.install_package('twisted') - from twisted.internet import reactor - from thingsboard_gateway.connectors.modbus.entities.master import Master from thingsboard_gateway.connectors.modbus.server import Server from thingsboard_gateway.connectors.modbus.slave import Slave