Skip to content

Commit fb206b1

Browse files
committed
Fix to toggle failsafe
1 parent 3259519 commit fb206b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mudpi/extensions/toggle/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def update(self):
9595
if self.duration > self.max_duration:
9696
# Failsafe cutoff duration
9797
self.turn_off()
98+
self.reset_duration()
9899

99100
def restore_state(self, state):
100101
""" This is called on start to

0 commit comments

Comments
 (0)