From 8ba91f4986ea41981dfc88319abc468bcb4758a7 Mon Sep 17 00:00:00 2001 From: Gilles Boccon-Gibod Date: Sat, 13 Jan 2024 20:33:02 -0800 Subject: [PATCH] fix assert --- bumble/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumble/device.py b/bumble/device.py index fd1974c1..bcf256fa 100644 --- a/bumble/device.py +++ b/bumble/device.py @@ -3632,7 +3632,7 @@ class Device(CompositeEventEmitter): self_address = None if role == HCI_CENTRAL_ROLE: own_address_type = self.connect_own_address_type - assert own_address_type + assert own_address_type is not None else: if self.supports_le_extended_advertising: # We'll know the address when the advertising set terminates,