Skip to content

Commit

Permalink
feat: add more typing for incoming bluetooth data
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Dec 3, 2023
1 parent 7e62d14 commit f449423
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/habluetooth/base_scanner.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

cdef object NO_RSSI_VALUE
cdef object BluetoothServiceInfoBleak
cdef object AdvertisementData
cdef object BLEDevice

cdef class BaseHaScanner:

Expand All @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit f449423

Please sign in to comment.