diff --git a/adafruit_ble/advertising/standard.py b/adafruit_ble/advertising/standard.py index 3c9ef74..3bfc1a1 100644 --- a/adafruit_ble/advertising/standard.py +++ b/adafruit_ble/advertising/standard.py @@ -27,7 +27,6 @@ try: from typing import Optional, List, Tuple, Union, Type, Iterator, Iterable, Any from adafruit_ble.uuid import UUID - from adafruit_ble.characteristics import Characteristic from adafruit_ble.services import Service from _bleio import ScanEntry @@ -71,7 +70,7 @@ def __init__( uuid = VendorUUID(data[16 * i : 16 * (i + 1)]) self._vendor_services.append(uuid) - def __contains__(self, key: Union[UUID, Characteristic]) -> bool: + def __contains__(self, key: Union[UUID, Service]) -> bool: uuid = key if hasattr(key, "uuid"): uuid = key.uuid @@ -353,7 +352,7 @@ class ServiceData(AdvertisingDataField): """Encapsulates service data. It is read as a memoryview which can be manipulated or set as a bytearray to change the size.""" - def __init__(self, service: Characteristic) -> None: + def __init__(self, service: Service) -> None: if isinstance(service.uuid, StandardUUID): self._adt = 0x16 elif isinstance(service.uuid, VendorUUID): pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy