Further ways to simplify code

This commit is contained in:
Danny Staple
2022-11-03 22:13:48 +00:00
parent 0a8a86960d
commit 8e8783d9b2
3 changed files with 11 additions and 16 deletions
@@ -8,6 +8,6 @@ async def run():
print(f"Found {len(devices)} devices")
print([device.name for device in devices])
ble_device_info = [device for device in devices if device.name==ble_name][0]
print("Found robot {}...".format(ble_device_info.name))
print(f"Found robot {ble_device_info.name}...")
asyncio.run(run())