From 697d5df3f814a55dcbfcb094cb144c8adac7d7ee Mon Sep 17 00:00:00 2001 From: Yuyang Huang Date: Thu, 1 Dec 2022 10:50:15 -0800 Subject: [PATCH] code style update --- bumble/device.py | 1 - bumble/gatt.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/bumble/device.py b/bumble/device.py index f9d62b6..60129ff 100644 --- a/bumble/device.py +++ b/bumble/device.py @@ -945,7 +945,6 @@ class Device(CompositeEventEmitter): if isinstance(attribute, Service): self.advertising_data += attribute.get_service_advertising_data() - # Set/update the advertising data if the advertising type allows it if advertising_type.has_data: await self.send_command(HCI_LE_Set_Advertising_Data_Command( diff --git a/bumble/gatt.py b/bumble/gatt.py index ef944fd..48baa51 100644 --- a/bumble/gatt.py +++ b/bumble/gatt.py @@ -210,7 +210,6 @@ class Service(Attribute): self.characteristics = characteristics[:] self.primary = primary - def get_service_advertising_data(self): """ Get Service specific advertising data @@ -218,7 +217,6 @@ class Service(Attribute): """ return b'' - def __str__(self): return f'Service(handle=0x{self.handle:04X}, end=0x{self.end_group_handle:04X}, uuid={self.uuid}){"" if self.primary else "*"}'