From 09f2812c14a1e79663a67b0e8c40ea8d7647528a Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Sun, 28 Jun 2020 22:11:37 -0400 Subject: [PATCH 1/2] ServiceData must be a bytearray --- adafruit_ble_eddystone/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: From 12227e3e15f0723b42e4ac7c35ed84086a337162 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Sun, 28 Jun 2020 22:20:47 -0400 Subject: [PATCH 2/2] update doc build for blinka _bleio --- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- docs/conf.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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/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 = {