From f4494233e01e6753515798eae614306da86857d6 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 2 Dec 2023 16:41:23 -1000 Subject: [PATCH] feat: add more typing for incoming bluetooth data --- src/habluetooth/base_scanner.pxd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/habluetooth/base_scanner.pxd b/src/habluetooth/base_scanner.pxd index aa7eedd..032f610 100644 --- a/src/habluetooth/base_scanner.pxd +++ b/src/habluetooth/base_scanner.pxd @@ -2,6 +2,8 @@ cdef object NO_RSSI_VALUE cdef object BluetoothServiceInfoBleak +cdef object AdvertisementData +cdef object BLEDevice cdef class BaseHaScanner: @@ -18,7 +20,7 @@ cdef class BaseHaScanner: cdef public object _loop -cdef class BaseHaRemoteScanner(BaseHaScanner): +cdef class BaseHaRemoteScanner(BaseHaScanner): cdef public object _new_info_callback cdef public dict _discovered_device_advertisement_datas @@ -31,6 +33,8 @@ cdef class BaseHaRemoteScanner(BaseHaScanner): prev_service_uuids=list, prev_service_data=dict, prev_manufacturer_data=dict, + prev_name=str, + prev_discovery=tuple ) cpdef void _async_on_advertisement( self,