code: def start_scan(self, active):
          
          try:
              self.bable.start_scan(self._on_device_found, active_scan=active, sync=True)
          except bable_interface.BaBLEException as err:
              # If we are already scanning, raise an error only we tried to change the active scan param
              if self._active_scan != active:
                  raise err
  
          self._active_scan = active
          self.scanning = True
docs: Start a scan. Will call self._on_device_found for each device scanned.
          Args:
              active (bool): Indicate if it is an active scan (probing for scan response) or not.