code: def DefaultAdapter(self):
      '''Retrieve the default adapter
      '''
      default_adapter = None
  
      for obj in mockobject.objects.keys():
          if obj.startswith('/org/bluez/') and 'dev_' not in obj:
              default_adapter = obj
  
      if default_adapter:
          return dbus.ObjectPath(default_adapter, variant_level=1)
      else:
          raise dbus.exceptions.DBusException(
              'No such adapter.', name='org.bluez.Error.NoSuchAdapter'f DefaultAdapter(self):
      '''Retrieve the default adapter
      '''
      default_adapter = None
  
      for obj in mockobject.objects.keys():
          if obj.startswith('/org/bluez/') and 'dev_' not in obj:
              default_adapter = obj
  
      if default_adapter:
          return dbus.ObjectPath(default_adapter, variant_level=1)
      else:
          raise dbus.exceptions.DBusException(
              'No such adapter.', name='org.bluez.Error.NoSuchAdapter')
docs: Retrieve the default adapter