Fix docstring in esphome.bluetooth.client (#86226)

pull/86238/head
Aarni Koskela 2023-01-19 16:21:32 +02:00 committed by GitHub
parent 40d39a15c9
commit c0d9dcdb3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -583,11 +583,12 @@ class ESPHomeClient(BaseBleakClient):
print(f"{sender}: {data}")
client.start_notify(char_uuid, callback)
Args:
char_specifier (BleakGATTCharacteristic, int, str or UUID):
characteristic (BleakGATTCharacteristic):
The characteristic to activate notifications/indications on a
characteristic, specified by either integer handle, UUID or
directly by the BleakGATTCharacteristic object representing it.
callback (function): The function to be called on notification.
kwargs: Unused.
"""
ble_handle = characteristic.handle
if ble_handle in self._notify_cancels: