[autowarmth, plugin] Bug if all scheduler entries are deleted (#8386)

pull/8383/head^2
zwim 3 years ago committed by GitHub
parent 0aab7d7378
commit 6aa0d802ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -256,7 +256,10 @@ function AutoWarmth:scheduleWarmthChanges(time)
end
end
UIManager:unschedule(AutoWarmth.setWarmth) -- to be safe, if there are no scheduled entries
if self.activate == 0 then return end
if #self.sched_funcs == 0 then return end
-- `actual_warmth` is the value which should be applied now.
-- `next_warmth` is valid `delay_time` seconds after now for resume on some devices (KA1)

Loading…
Cancel
Save