We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 294e731 commit 2abe80dCopy full SHA for 2abe80d
docs/troubleshooting.rst
@@ -103,9 +103,9 @@ Python::
103
from bleak.backends.device import BLEDevice
104
105
106
- async def find_all_devices_services()
107
- scanner = BleakScanner()
108
- devices: Sequence[BLEDevice] = scanner.discover(timeout=5.0)
+ async def find_all_devices_services():
+ devices: Sequence[BLEDevice] = await BleakScanner.discover(timeout=5.0)
+
109
for d in devices:
110
async with BleakClient(d) as client:
111
print(client.services)
0 commit comments