mirror of
https://github.com/meshtastic/python.git
synced 2026-01-16 03:37:57 -05:00
appease the linter
This commit is contained in:
@@ -250,10 +250,8 @@ class BLEClient:
|
||||
self.async_await(self.bleak_client.write_gatt_char(*args, **kwargs))
|
||||
|
||||
def has_characteristic(self, specifier):
|
||||
if self.bleak_client.services.get_characteristic(specifier):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
"""Check if the connected node supports a specified characteristic."""
|
||||
return bool(self.bleak_client.services.get_characteristic(specifier))
|
||||
|
||||
def start_notify(self, *args, **kwargs): # pylint: disable=C0116
|
||||
self.async_await(self.bleak_client.start_notify(*args, **kwargs))
|
||||
|
||||
Reference in New Issue
Block a user