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 50afe1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ Python::
from bleak.backends.device import BLEDevice


async def find_all_devices_services()
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 50afe1a

Please sign in to comment.