Skip to content

Commit 3b4690e

Browse files
committed
appease the linter
1 parent 49bd9cb commit 3b4690e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

meshtastic/ble_interface.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,8 @@ def write_gatt_char(self, *args, **kwargs): # pylint: disable=C0116
250250
self.async_await(self.bleak_client.write_gatt_char(*args, **kwargs))
251251

252252
def has_characteristic(self, specifier):
253-
if self.bleak_client.services.get_characteristic(specifier):
254-
return True
255-
else:
256-
return False
253+
"""Check if the connected node supports a specified characteristic."""
254+
return bool(self.bleak_client.services.get_characteristic(specifier))
257255

258256
def start_notify(self, *args, **kwargs): # pylint: disable=C0116
259257
self.async_await(self.bleak_client.start_notify(*args, **kwargs))

0 commit comments

Comments
 (0)