Skip to content

Commit cb1ad29

Browse files
authored
Merge pull request #10 from dhalbert/ServiceData-bytearray
ServiceData must be a bytearray
2 parents 7d9f502 + 12227e3 commit cb1ad29

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
awk -F '\/' '{ print tolower($2) }' |
1919
tr '_' '-'
2020
)
21-
- name: Set up Python 3.6
21+
- name: Set up Python 3.7
2222
uses: actions/setup-python@v1
2323
with:
24-
python-version: 3.6
24+
python-version: 3.7
2525
- name: Versions
2626
run: |
2727
python3 --version

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
awk -F '\/' '{ print tolower($2) }' |
2121
tr '_' '-'
2222
)
23-
- name: Set up Python 3.6
23+
- name: Set up Python 3.7
2424
uses: actions/setup-python@v1
2525
with:
26-
python-version: 3.6
26+
python-version: 3.7
2727
- name: Versions
2828
run: |
2929
python3 --version

adafruit_ble_eddystone/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def __get__(self, obj, cls):
5858
return super().__get__(obj, cls)[1:]
5959

6060
def __set__(self, obj, value):
61-
return super().__set__(obj, obj.frame_type + value)
61+
# ServiceData requires a bytearray.
62+
return super().__set__(obj, bytearray(obj.frame_type) + value)
6263

6364

6465
class EddystoneFrameBytes:

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Uncomment the below if you use native CircuitPython modules such as
2222
# digitalio, micropython and busio. List the modules you use. Without it, the
2323
# autodoc module docs will fail to generate with a warning.
24-
# autodoc_mock_imports = ["digitalio", "busio"]
24+
autodoc_mock_imports = ["bleak"]
2525

2626

2727
intersphinx_mapping = {

0 commit comments

Comments
 (0)