@@ -41,7 +41,7 @@ class _SettingsResult(ComplexCharacteristic):
41
41
def __init__ (self ):
42
42
super ().__init__ (properties = Characteristic .NOTIFY )
43
43
44
- def bind (self , service ) :
44
+ def bind (self , service : Service ) -> _bleio . PacketBuffer :
45
45
"""Bind to an IBBQService."""
46
46
bound_characteristic = super ().bind (service )
47
47
bound_characteristic .set_cccd (notify = True )
@@ -57,7 +57,7 @@ class _RealtimeData(ComplexCharacteristic):
57
57
def __init__ (self ):
58
58
super ().__init__ (properties = Characteristic .NOTIFY )
59
59
60
- def bind (self , service ) :
60
+ def bind (self , service : Service ) -> _bleio . PacketBuffer :
61
61
"""Bind to an IBBQService."""
62
62
bound_characteristic = super ().bind (service )
63
63
bound_characteristic .set_cccd (notify = True )
@@ -74,7 +74,7 @@ class IBBQService(Service):
74
74
_UNITS_CELSIUS_MSG = b"\x02 \x00 \x00 \x00 \x00 \x00 "
75
75
_REQUEST_BATTERY_LEVEL_MSG = b"\x08 \x24 \x00 \x00 \x00 \x00 "
76
76
77
- def __init__ (self , service = None ):
77
+ def __init__ (self , service : Service = None ) -> None :
78
78
super ().__init__ (service = service )
79
79
# Defer creating buffers until needed, since MTU is not known yet.
80
80
self ._settings_result_buf = None
0 commit comments