Bug-Fix: timer motion_sensor_light

This commit is contained in:
Dirk Alders 2023-01-25 11:53:38 +01:00
förälder 036cddeb8e
incheckning 40570998d0

Visa fil

@ -313,4 +313,5 @@ class motion_sensor_light(common_base):
def cyclic_task(self, cyclic_task):
min_value = 10 if self.motion_detected() else 0
self.set(self.KEY_TIMER, max(min_value, self[self.KEY_TIMER] - cyclic_task.cycle_time))
if self[self.KEY_TIMER] != 0:
self.set(self.KEY_TIMER, max(min_value, self[self.KEY_TIMER] - cyclic_task.cycle_time))