code: def _set_master_state(self, state):
          
          if state == 'init':
              self._service_state.update_current_state('init', force=True)
              self.set_state(DevState.INIT)
  
          elif state == 'on':
              self.set_state(DevState.ON)
              self._service_state.update_current_state('on')
docs: Set the state of the SDPMaster.