Fix condition in PR #62

This commit is contained in:
R. Richard 2019-08-08 08:27:41 +02:00
parent 13179e59eb
commit f5e7d6016a

View File

@ -31,7 +31,8 @@ class FSMHandler:
LOG.error('IGNORING MESSAGE: Invalid message received: %s', message)
def handle_step(self, message):
return message if self.fsm.step(message['trigger']) else None
if self.fsm.step(message['trigger']):
return message
def handle_update(self, message):
# pylint: disable=no-self-use