#NEWLINE# def __init__( self , tc_object , switch_type , update_devices ) : #NEWLINE# #INDENT# 'Initialize the ThinkingCleaner.' #NEWLINE# self . type = switch_type #NEWLINE# self . _update_devices = switch_type #NEWLINE# self . _tc_object = tc_object #NEWLINE# self . _state = ( self . _tc_object . is_cleaning if ( switch_type == 'clean' ) else False ) #NEWLINE# self . lock = False #NEWLINE# self . last_lock_time = None #NEWLINE# self . graceful_state = False