From 7bcea9e9b9d5bdfb292a616643ccd097eaaba9c7 Mon Sep 17 00:00:00 2001 From: kschmelzer <46461860+kschmelzer@users.noreply.github.com> Date: Wed, 27 Jan 2021 10:47:24 -0600 Subject: [PATCH] Update characteristic.py Added missing 'connection' member to `stop_notify` method call. --- _bleio/characteristic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_bleio/characteristic.py b/_bleio/characteristic.py index b9f607d..8f85a8f 100644 --- a/_bleio/characteristic.py +++ b/_bleio/characteristic.py @@ -225,7 +225,7 @@ def set_cccd(self, *, notify: bool = False, indicate: bool = False) -> Any: ) else: adap.adapter.await_bleak( - self._service._bleak_client.stop_notify( + self._service.connection._bleak_client.stop_notify( self._bleak_gatt_characteristic.uuid ) )