Skip to content

Commit

Permalink
stateengine plugin: fix pass_state webif handling on first run
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Sep 22, 2024
1 parent 8d1ff2f commit 86a1d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stateengine/StateEngineItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,8 @@ def update_current_to_empty(d):
_leaveactions_run = True
elif result is False and last_state != state and state.actions_pass.count() > 0:
_pass_state = state
state.run_pass(self.__pass_repeat.get(state, False), self.__repeat_actions.get())
_key_pass = ['{}'.format(last_state.id), 'pass']
_pass_state.run_pass(self.__pass_repeat.get(state, False), self.__repeat_actions.get())
_key_pass = ['{}'.format(_pass_state.id), 'pass']
self.update_webif(_key_pass, True)
self.__pass_repeat.update({state: True})
if result is True:
Expand Down

0 comments on commit 86a1d4b

Please sign in to comment.