Skip to content

Commit

Permalink
fixes:
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasHeine committed Feb 2, 2023
1 parent 8de782e commit 60b60d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asyncua/common/statemachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down

0 comments on commit 60b60d7

Please sign in to comment.