parameters: (self)
docstring: Stop alarm.
docstring_summary: Stop alarm.
docstring_tokens: Stop alarm .
function: def stop_alarm(self):
  
          """
          Stop alarm.
          """
  
          if self.alarm_state != Runner.ALARM_STATE.scanning:
              log("alarm-stopping")
              self.alarm_state = Runner.ALARM_STATE.scanning
              self.alarm_triggered = False
              self.validated = False
              self.motion_detected = False
              self.board.change_background("white")
              self.board.write_message("scanning")
function_tokens: def stop_alarm ( self ) : if self . alarm_state != Runner . ALARM_STATE . scanning : log ( "alarm-stopping" ) self . alarm_state = Runner . ALARM_STATE . scanning self . alarm_triggered = False self . validated = False self . motion_detected = False self . board . change_background ( "white" ) self . board . write_message ( "scanning" )