code: def add_remote(name, location):
      '''
      Adds a new location to install flatpak packages from.
  
      Args:
          name (str): The repository's name.
          location (str): The location of the repository.
  
      Returns:
          dict: The ``result`` and ``output``.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' flatpak.add_remote flathub https://flathub.org/repo/flathub.flatpakrepo
      '''
      ret = {'result': None, 'output': ''}
      out = __salt__['cmd.run_all'](FLATPAK_BINARY_NAME + ' remote-add ' + name + ' ' + location)
  
      if out['retcode'] and out['stderr']:
          ret['stderr'] = out['stderr'].strip()
          ret['result'] = False
      else:
          ret['stdout'] = out['stdout'].strip()
          ret['result'] = True
  
      return ref add_remote(name, location):
      '''
      Adds a new location to install flatpak packages from.
  
      Args:
          name (str): The repository's name.
          location (str): The location of the repository.
  
      Returns:
          dict: The ``result`` and ``output``.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' flatpak.add_remote flathub https://flathub.org/repo/flathub.flatpakrepo
      '''
      ret = {'result': None, 'output': ''}
      out = __salt__['cmd.run_all'](FLATPAK_BINARY_NAME + ' remote-add ' + name + ' ' + location)
  
      if out['retcode'] and out['stderr']:
          ret['stderr'] = out['stderr'].strip()
          ret['result'] = False
      else:
          ret['stdout'] = out['stdout'].strip()
          ret['result'] = True
  
      return ret
docs: Adds a new location to install flatpak packages from.
  
      Args:
          name (str): The repository's name.
          location (str): The location of the repository.
  
      Returns:
          dict: The ``result`` and ``output``.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' flatpak.add_remote flathub https://flathub.org/repo/flathub.flatpakrepo