Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/pylint
rev: v2.11.1
rev: v2.12.2
hooks:
- id: pylint
name: pylint (library code)
Expand Down
6 changes: 3 additions & 3 deletions adafruit_ble_ibbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class _SettingsResult(ComplexCharacteristic):
def __init__(self):
super().__init__(properties=Characteristic.NOTIFY)

def bind(self, service):
def bind(self, service: Service) -> _bleio.PacketBuffer:
"""Bind to an IBBQService."""
bound_characteristic = super().bind(service)
bound_characteristic.set_cccd(notify=True)
Expand All @@ -57,7 +57,7 @@ class _RealtimeData(ComplexCharacteristic):
def __init__(self):
super().__init__(properties=Characteristic.NOTIFY)

def bind(self, service):
def bind(self, service: Service) -> _bleio.PacketBuffer:
"""Bind to an IBBQService."""
bound_characteristic = super().bind(service)
bound_characteristic.set_cccd(notify=True)
Expand All @@ -74,7 +74,7 @@ class IBBQService(Service):
_UNITS_CELSIUS_MSG = b"\x02\x00\x00\x00\x00\x00"
_REQUEST_BATTERY_LEVEL_MSG = b"\x08\x24\x00\x00\x00\x00"

def __init__(self, service=None):
def __init__(self, service: Service = None) -> None:
super().__init__(service=service)
# Defer creating buffers until needed, since MTU is not known yet.
self._settings_result_buf = None
Expand Down