diff --git a/thingsboard_gateway/connectors/opcua/opcua_connector.py b/thingsboard_gateway/connectors/opcua/opcua_connector.py index f4bb41710..afeb03fa9 100644 --- a/thingsboard_gateway/connectors/opcua/opcua_connector.py +++ b/thingsboard_gateway/connectors/opcua/opcua_connector.py @@ -691,8 +691,7 @@ def _check_path(self, config_path, node): information_path = node_path + config_path else: information_path = config_path - result = information_path[:].replace('\\', '\\\\') - return result + return information_path.replace('\\', '\\\\') @property def subscribed(self):