code: def scan():
      '''
      Scan for bluetooth devices in the area
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' bluetooth.scan
      '''
      ret = []
      devices = bluetooth.discover_devices(lookup_names=True)
      for device in devices:
          ret.append({device[0]: device[1]})
      return ref scan():
      '''
      Scan for bluetooth devices in the area
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' bluetooth.scan
      '''
      ret = []
      devices = bluetooth.discover_devices(lookup_names=True)
      for device in devices:
          ret.append({device[0]: device[1]})
      return ret
docs: Scan for bluetooth devices in the area
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' bluetooth.scan