Skip to content

Commit 4c1dd41

Browse files
committed
Add MOVING state transition
1 parent 990a5db commit 4c1dd41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

startup/30-detectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def stage(self):
335335
return super().stage()
336336

337337
def _state_changed(self, value=None, old_value=None, **kwargs):
338-
if self._status is not None and value == "STANDBY" and old_value == "RUNNING":
338+
if self._status is not None and value == "STANDBY" and (old_value == "RUNNING" or old_value == "MOVING"):
339339
self._status.set_finished()
340340
self._index += 1
341341
self._status = None

0 commit comments

Comments
 (0)