Calendar trigger

This commit is contained in:
2024-01-18 16:28:42 +01:00
parent bd42507521
commit 1ff4a15818
2 changed files with 4 additions and 2 deletions

View File

@ -65,6 +65,8 @@ public class CalendarReceiver extends BroadcastReceiver implements AutomationLis
public static void addUsedPair(RuleEventPair pair)
{
//TODO: Rule with multiple calendar events should be executed only once
// Add pair only if it's not in the list already.
for(RuleEventPair usedPair : calendarEventsUsed)
{
@ -621,7 +623,7 @@ public class CalendarReceiver extends BroadcastReceiver implements AutomationLis
for(Trigger t : rule.getTriggerSet())
{
if(t.getTriggerType().equals(calendarEvents))
if(t.getTriggerType().equals(Trigger.Trigger_Enum.calendarEvent))
{
for (CalendarReceiver.CalendarEvent event : calendarEvents)
{