1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Fixed OPC-UA connector type resolving

This commit is contained in:
samson0v
2024-03-22 11:58:21 +02:00
parent c12d0f6d21
commit 8986a5f99f

View File

@@ -762,6 +762,11 @@ class TBGatewayService:
try:
connector_persistent_key = None
connector_type = connector["type"].lower() if connector.get("type") is not None else None
# can be removed in future releases
if connector_type == 'opcua':
connector_type = 'opcua_asyncio'
if connector_type is None:
log.error("Connector type is not defined!")
continue