From 846e905ae1b7277caabb6d274a124ea6ed9e0532 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Fri, 12 Mar 2021 14:18:03 -0700 Subject: [PATCH] Removes check from scheduler method that was functioning incorrectly. --- PepperDashEssentials/Room/Types/EssentialsTechRoom.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/PepperDashEssentials/Room/Types/EssentialsTechRoom.cs b/PepperDashEssentials/Room/Types/EssentialsTechRoom.cs index b8bbc081..232ab83c 100644 --- a/PepperDashEssentials/Room/Types/EssentialsTechRoom.cs +++ b/PepperDashEssentials/Room/Types/EssentialsTechRoom.cs @@ -183,11 +183,12 @@ namespace PepperDash.Essentials var roomEvent = _roomScheduledEventGroup.ScheduledEvents[scheduledEvent.Key]; - if (!SchedulerUtilities.CheckEventTimeForMatch(roomEvent, DateTime.Parse(scheduledEvent.Time)) && - !SchedulerUtilities.CheckEventRecurrenceForMatch(roomEvent, scheduledEvent.Days)) - { - return; - } + //if (SchedulerUtilities.CheckEventTimeForMatch(roomEvent, DateTime.Parse(scheduledEvent.Time)) && + // SchedulerUtilities.CheckEventRecurrenceForMatch(roomEvent, scheduledEvent.Days)) + //{ + // Debug.Console(1, this, "Existing event matches new event properties. Nothing to update"); + // return; + //} Debug.Console(1, this, "Existing event does not match new config properties. Deleting existing event '{0}' and creating new event from configuration",