diff --git a/opcua/server/address_space.py b/opcua/server/address_space.py index 547e1789..51363db2 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):