Skip to content

Commit cd77315

Browse files
committed
Lint and rename SolicitServicesAdvertisement
1 parent 3434bfa commit cd77315

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

adafruit_ble/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
4444
"""
4545

46-
import _bleio
4746
import board
47+
import _bleio
4848

4949
from .services import Service
5050
from .advertising import Advertisement

adafruit_ble/advertising/standard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def __init__(self, *services):
155155
def matches(cls, entry):
156156
return entry.matches(cls.prefix, all=False)
157157

158-
class ServicesSolicitationAdvertisement(Advertisement):
158+
class SolicitServicesAdvertisement(Advertisement):
159159
"""Advertise what services the device would like to use over a connection."""
160160
# This is two prefixes, one for each ADT that can carry solicited service UUIDs.
161161
prefix = b"\x01\x14\x01\x15"

docs/micropython_mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def const(x):
2-
return x
2+
return x

examples/ble_color_proximity.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66

77
import time
88
import board
9-
import neopixel
109
import digitalio
1110

11+
import neopixel
12+
1213
from adafruit_ble import BLERadio
1314
from adafruit_ble.advertising.adafruit import AdafruitColor
1415

examples/ble_demo_central.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
import time
88

9-
import adafruit_lis3dh
109
import board
1110
import busio
1211
import digitalio
12+
import adafruit_lis3dh
1313
from adafruit_ble import BLERadio
1414
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
1515
from adafruit_ble.services.nordic import UARTService

0 commit comments

Comments
 (0)