Fix generate_fsm_update() not listing valid transitions properly

This commit is contained in:
Kristóf Tóth 2018-02-23 12:08:14 +01:00
parent ecbb61a862
commit 38ca56fa9d

View File

@ -38,7 +38,7 @@ class TFWServer:
response = {'key': key,
'data': {'current_state': self.fsm.state,
'valid_transitions':
[{'trigger': trigger} for trigger in self.fsm.machine.get_triggers()]}}
[{'trigger': trigger} for trigger in self.fsm.machine.get_triggers(self.fsm.state)]}}
return response, key
def listen(self, port):