'Initialize the ThinkingCleaner.'

def __init__(self, tc_object, switch_type, update_devices):

    self.type = switch_type
    self._update_devices = update_devices
    self._tc_object = tc_object
    self._state = (self._tc_object.is_cleaning if (switch_type == 'clean') else False)
    self.lock = False
    self.last_lock_time = None
    self.graceful_state = False
