TimeFrame repetition fix

This commit is contained in:
jens committed 2022-03-26 20:00:19 +01:00
1 parent 0368b2a8c8
commit 5a09962cc9
4 files changed
+11 -3

No files matched your search

@@ -334,6 +334,15 @@ public class Rule implements Comparable<Rule>
{
if (oneTrigger.hasStateNotAppliedSinceLastRuleExecution())
return true;
/*
Workaround for repetition in TimeFrame triggers
*/
if(oneTrigger.getTriggerType().equals(Trigger.Trigger_Enum.timeFrame))
{
if(oneTrigger.getTimeFrame().repetition > 0)
return true;
}
}
return false;