Skip to content

Commit

Permalink
docs/troubleshooting: fix missing await
Browse files Browse the repository at this point in the history
Fixes: #1334
  • Loading branch information
dlech committed Jun 14, 2023
1 parent 294e731 commit 0b04eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Python::

async def find_all_devices_services()
scanner = BleakScanner()
devices: Sequence[BLEDevice] = scanner.discover(timeout=5.0)
devices: Sequence[BLEDevice] = await scanner.discover(timeout=5.0)
for d in devices:
async with BleakClient(d) as client:
print(client.services)
Expand Down

0 comments on commit 0b04eec

Please sign in to comment.