From 3ff9a91f345ed9992c6700cd89aa3a30334d2cab Mon Sep 17 00:00:00 2001 From: Andreas Heine Date: Thu, 2 Feb 2023 09:12:46 +0100 Subject: [PATCH] fixes: --- asyncua/common/statemachine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!")