Skip to content
Open
Changes from all commits
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
7 changes: 6 additions & 1 deletion homekit/controller/ble_impl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ def __init__(self, pairing_data, adapter='hci0'):
logger.debug("failed to list_accessories_and_characteristics from device:\n%s", repr(e))

def close(self):
pass
"""Closes an active BLE session
If a session is necessary for the next action, it will be instantiated
"""
if self.session:
self.session.close()
self.session = None

def list_accessories_and_characteristics(self):
if 'accessories' in self.pairing_data:
Expand Down