From ead6970ad12c3a464341c0976f714d689856e1b6 Mon Sep 17 00:00:00 2001 From: BruceGitHub2015 Date: Sat, 18 May 2024 09:27:17 -0500 Subject: [PATCH] Update address_space.py fixing this issue https://github.com/FreeOpcUa/opcua-asyncio/issues/1529 --- opcua/server/address_space.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opcua/server/address_space.py b/opcua/server/address_space.py index 547e1789c..51363db2e 100644 --- a/opcua/server/address_space.py +++ b/opcua/server/address_space.py @@ -311,7 +311,7 @@ def _add_type_definition(self, nodedata, item): addref.IsForward = True addref.ReferenceTypeId = ua.NodeId(ua.ObjectIds.HasTypeDefinition) addref.TargetNodeId = item.TypeDefinition - addref.TargetNodeClass = ua.NodeClass.DataType + addref.TargetNodeClass = ua.NodeClass.ObjectType self._add_reference_no_check(nodedata, addref) def delete_nodes(self, deletenodeitems, user=UserManager.User.Admin):