class StateClosing(State):
# TODO: share code with StateOpening, and possibly also with the nerv-mechanism from StateAboutToOpen
def __init__(self,callback,sm):
- State.__init__(self,sm)
+ super().__init__(sm)
self.callbacks=[callback]
# FIXME: can we send "202 processing: Trying to close the door" here? Are the callbacks multi-use?
self.tries = 0