File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ jobs:
18
18
awk -F '\/' '{ print tolower($2) }' |
19
19
tr '_' '-'
20
20
)
21
- - name : Set up Python 3.6
21
+ - name : Set up Python 3.7
22
22
uses : actions/setup-python@v1
23
23
with :
24
- python-version : 3.6
24
+ python-version : 3.7
25
25
- name : Versions
26
26
run : |
27
27
python3 --version
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ jobs:
20
20
awk -F '\/' '{ print tolower($2) }' |
21
21
tr '_' '-'
22
22
)
23
- - name : Set up Python 3.6
23
+ - name : Set up Python 3.7
24
24
uses : actions/setup-python@v1
25
25
with :
26
- python-version : 3.6
26
+ python-version : 3.7
27
27
- name : Versions
28
28
run : |
29
29
python3 --version
Original file line number Diff line number Diff line change @@ -231,7 +231,13 @@ def start_scan(
231
231
"""
232
232
if not advertisement_types :
233
233
advertisement_types = (Advertisement ,)
234
- prefixes = b"" .join (adv .get_prefix_bytes () for adv in advertisement_types )
234
+
235
+ all_prefix_bytes = tuple (adv .get_prefix_bytes () for adv in advertisement_types )
236
+
237
+ # If one of the advertisement_types has no prefix restrictions, then
238
+ # no prefixes should be specified at all, so we match everything.
239
+ prefixes = b"" if b"" in all_prefix_bytes else b"" .join (all_prefix_bytes )
240
+
235
241
for entry in self ._adapter .start_scan (
236
242
prefixes = prefixes ,
237
243
buffer_size = buffer_size ,
Original file line number Diff line number Diff line change 21
21
# Uncomment the below if you use native CircuitPython modules such as
22
22
# digitalio, micropython and busio. List the modules you use. Without it, the
23
23
# autodoc module docs will fail to generate with a warning.
24
- autodoc_mock_imports = ["board" , "microcontroller" ]
24
+ autodoc_mock_imports = ["bleak" , " board" , "microcontroller" ]
25
25
autodoc_member_order = "bysource"
26
26
add_module_names = False
27
27
You can’t perform that action at this time.
0 commit comments