Skip to content

Commit

Permalink
Merge pull request #10 from dhalbert/ServiceData-bytearray
Browse files Browse the repository at this point in the history
ServiceData must be a bytearray
  • Loading branch information
dhalbert authored Jun 30, 2020
2 parents 7d9f502 + 12227e3 commit cb1ad29
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
awk -F '\/' '{ print tolower($2) }' |
tr '_' '-'
)
- name: Set up Python 3.6
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.7
- name: Versions
run: |
python3 --version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
awk -F '\/' '{ print tolower($2) }' |
tr '_' '-'
)
- name: Set up Python 3.6
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.7
- name: Versions
run: |
python3 --version
Expand Down
3 changes: 2 additions & 1 deletion adafruit_ble_eddystone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def __get__(self, obj, cls):
return super().__get__(obj, cls)[1:]

def __set__(self, obj, value):
return super().__set__(obj, obj.frame_type + value)
# ServiceData requires a bytearray.
return super().__set__(obj, bytearray(obj.frame_type) + value)


class EddystoneFrameBytes:
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
# autodoc_mock_imports = ["digitalio", "busio"]
autodoc_mock_imports = ["bleak"]


intersphinx_mapping = {
Expand Down

0 comments on commit cb1ad29

Please sign in to comment.