def METHOD_NAME(self, current_time):
    event_list = sorted(self.event_list, key=lambda e: e.event_time)
    past_events = list(filter(lambda e: e.event_time <= current_time.hour, event_list))
    self._active = len(past_events) == 0 or type(past_events[-1]) == self.trigger_type