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

This commit is contained in:
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

View File

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