diff --git a/asyncua/common/statemachine.py b/asyncua/common/statemachine.py index d57c35f90..8e7134e0f 100644 --- a/asyncua/common/statemachine.py +++ b/asyncua/common/statemachine.py @@ -295,14 +295,14 @@ def __init__(self, server: Server=None, parent: Node=None, idx: int=None, name: async def install(self, optionals: bool=False): if await self._is_subtype_of_finitestatemachine(): - super().install(optionals) + await super().install(optionals) pass else: raise ua.UaError(f"NodeId: {self._state_machine_type} is not a subtype of FiniteStateMachine!") async def _is_subtype_of_finitestatemachine(self): result = False - type_node = Node(self._server, self._state_machine_type) + type_node = self._server.get_node(self._state_machine_type) parent = await type_node.get_parent() if not parent: raise ua.UaError("Node does not have a Parent!")