diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41d16a1..0d491a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18efb9c..0950dc6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/adafruit_ble_eddystone/__init__.py b/adafruit_ble_eddystone/__init__.py index 9c07136..2f1efae 100644 --- a/adafruit_ble_eddystone/__init__.py +++ b/adafruit_ble_eddystone/__init__.py @@ -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: diff --git a/docs/conf.py b/docs/conf.py index 340c20d..c9c44c2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 = {