fix assert

This commit is contained in:
Gilles Boccon-Gibod
2024-01-13 20:33:02 -08:00
parent 79a5e953bc
commit 8ba91f4986

View File

@@ -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,