- self.door_manual_switch_used=(who is None or len(who) == 0)
- self.last_door_operation_unixts=time.time()
+ if not self.door_open_previously is None:
+ self.door_manual_switch_used=(who is None or len(who) == 0)
+ self.last_door_operation_unixts=time.time()
+ if self.door_open != self.door_open_previously:
+ self.lock.release()
+ self.checkPresenceStateChangeAndNotify()
+ self.lock.acquire()
+ self.door_open_previously = self.door_open