We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c6dbb8 commit 4d86f7bCopy full SHA for 4d86f7b
adafruit_ble/advertising/__init__.py
@@ -290,6 +290,8 @@ def get_prefix_bytes(cls):
290
"""Return a merged version of match_prefixes as a single bytes object,
291
with length headers.
292
"""
293
+ # Check for deprecated `prefix` class attribute.
294
+ cls._prefix_bytes = getattr(cls, "prefix", None)
295
# Do merge once and memoize it.
296
if cls._prefix_bytes is None:
297
cls._prefix_bytes = (
0 commit comments