Skip to content

Commit 00ead74

Browse files
committed
Run pre-commit
1 parent 6c5e117 commit 00ead74

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

adafruit_ble/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ def connection_interval(self) -> float:
130130
`connection_interval` will then remain the same.
131131
132132
Apple has additional guidelines that dictate should be a multiple of 15ms except if HID
133-
is available. When HID is available Apple devices may accept 11.25ms intervals."""
133+
is available. When HID is available Apple devices may accept 11.25ms intervals.
134+
"""
134135
return self._bleio_connection.connection_interval
135136

136137
@connection_interval.setter

adafruit_ble/attributes/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ class Attribute:
4545
4646
.. data:: SIGNED_WITH_MITM
4747
48-
security_mode: authenticated data signing, without man-in-the-middle protection"""
48+
security_mode: authenticated data signing, without man-in-the-middle protection
49+
"""
4950

5051
# pylint: disable=too-few-public-methods
5152
NO_ACCESS = _bleio.Attribute.NO_ACCESS

examples/ble_json_central.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
connection = None
1414

1515
while True:
16-
1716
if not connection:
1817
print("Scanning for BLE device advertising our sensor service...")
1918
for adv in ble.start_scan(ProvideServicesAdvertisement):

examples/ble_json_peripheral.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
service = SensorService()
1717
advertisement = ProvideServicesAdvertisement(service)
1818

19+
1920
# Function to get some fake weather sensor readings for this example in the desired unit.
2021
def measure(unit):
2122
temperature = random.uniform(0.0, 10.0)

0 commit comments

Comments
 (0)