(self)
Scan for bluetooth devices and return a DS4 device if found.
Scan for bluetooth devices and return a DS4 device if found.
Scan for bluetooth devices and return a DS4 device if found .
def find_device(self):
        """Scan for bluetooth devices and return a DS4 device if found."""
        for bdaddr, name in self.scan():
            if name == "Wireless Controller":
                self.logger.info("Found device {0}", bdaddr)
                return BluetoothDS4Device.connect(bdaddr)
def find_device ( self ) : for bdaddr , name in self . scan ( ) : if name == "Wireless Controller" : self . logger . info ( "Found device {0}" , bdaddr ) return BluetoothDS4Device . connect ( bdaddr )