diff --git a/asyncua/common/node.py b/asyncua/common/node.py index 2baac13c7..5d5e1248b 100644 --- a/asyncua/common/node.py +++ b/asyncua/common/node.py @@ -809,7 +809,7 @@ async def add_object( self, nodeid: Union[ua.NodeId, str, int], bname: Union[ua.QualifiedName, str], - objecttype: Optional[int] = None, + objecttype: Optional[Union[ua.NodeId, int]] = None, instantiate_optional: bool = True, ) -> "Node": return await create_object(self, nodeid, bname, objecttype, instantiate_optional)