Skip to content

Commit

Permalink
Fixed OPC-UA connector type resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
samson0v committed Mar 22, 2024
1 parent c12d0f6 commit 8986a5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions thingsboard_gateway/gateway/tb_gateway_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,11 @@ def _load_connectors(self, config=None):
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
Expand Down

0 comments on commit 8986a5f

Please sign in to comment.