Bug-Fix: timer motion_sensor_light
Tento commit je obsažen v:
rodič
036cddeb8e
revize
40570998d0
@ -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))
|
||||
|
Načítá se…
x
Odkázat v novém úkolu
Zablokovat Uživatele