+ self.status_change_handler(somebody_present, door_open=self.door_open, who=self.door_who)
+ warning = self.getPossibleWarning()
+ if warning == self.last_warning:
+ self.count_same_warning+=1
+ else:
+ self.last_warning=warning
+ self.count_same_warning=0
+ if not warning is None and self.count_same_warning < 3:
+ logging.debug("checkPresenceStateChangeAndNotify: warning: " + str(warning))
+ if not self.status_change_handler is None:
+ self.status_change_handler(somebody_present=None, door_open=self.door_open, who=self.door_who, warning=warning)
+