From 4286b2ab5990a3a1b4e5099fdddc4b885b540ef0 Mon Sep 17 00:00:00 2001 From: Gilles Boccon-Gibod Date: Tue, 18 Apr 2023 14:58:31 -0700 Subject: [PATCH] address PR comments --- bumble/device.py | 2 +- bumble/pairing.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bumble/device.py b/bumble/device.py index 93148aed..61594352 100644 --- a/bumble/device.py +++ b/bumble/device.py @@ -2808,7 +2808,7 @@ class Device(CompositeEventEmitter): ) ) - AsyncRunner.spawn(confirm()) + AsyncRunner.spawn(connection.abort_on('disconnection', confirm())) return if io_capability == HCI_DISPLAY_ONLY_IO_CAPABILITY: diff --git a/bumble/pairing.py b/bumble/pairing.py index ba5ef463..eaa44708 100644 --- a/bumble/pairing.py +++ b/bumble/pairing.py @@ -114,7 +114,7 @@ class PairingDelegate: return True async def confirm(self) -> bool: - """Respond yes or not to a Pairing confirmation question.""" + """Respond yes or no to a Pairing confirmation question.""" return True # pylint: disable-next=unused-argument