import bleak import asyncio async def main(): devices = await bleak.BleakScanner.discover() print(devices) asyncio.run(main())