nervlist += [((CLOSE_REPEAT_NUMBER+1)*CLOSE_REPEAT_TIMEOUT, self.could_not_close)]
super().__init__(sm, nervlist)
self.callbacks=[]
# FIXME: can we send "202 processing: Trying to close the door" here? Are the callbacks multi-use?
self.tries = 0
assert self.pins().door_closed, "Door is open while we should close it, this must not happen"
nervlist += [((CLOSE_REPEAT_NUMBER+1)*CLOSE_REPEAT_TIMEOUT, self.could_not_close)]
super().__init__(sm, nervlist)
self.callbacks=[]
# FIXME: can we send "202 processing: Trying to close the door" here? Are the callbacks multi-use?
self.tries = 0
assert self.pins().door_closed, "Door is open while we should close it, this must not happen"