From 39a34f7c248d31a44238d2b21cb70da617233ce3 Mon Sep 17 00:00:00 2001 From: Jan Speller Date: Sat, 21 May 2022 16:44:12 +0200 Subject: [PATCH 1/4] Fix sending Location in Telegram Plugin (Issue #94) --- plugin/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/telegram.py b/plugin/telegram.py index 9bc5ef1..c4fcbee 100644 --- a/plugin/telegram.py +++ b/plugin/telegram.py @@ -85,7 +85,7 @@ class BoswatchPlugin(PluginBase): if bwPacket.get("lat") is not None and bwPacket.get("lon") is not None: logging.debug("Found coordinates in packet") (lat, lon) = (bwPacket.get("lat"), bwPacket.get("lon")) - self._sendMessage(lat, lon) + self._sendLocation(lat, lon) def zvei(self, bwPacket): """!Called on ZVEI alarm From 0d09ff202b2b10b9d49c7bfebbd88a8723013700 Mon Sep 17 00:00:00 2001 From: Jan Speller Date: Sat, 21 May 2022 16:48:32 +0200 Subject: [PATCH 2/4] Fix Tests for Python 3.10 --- .github/workflows/run_pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_pytest.yml b/.github/workflows/run_pytest.yml index 9ed7032..c4c5751 100644 --- a/.github/workflows/run_pytest.yml +++ b/.github/workflows/run_pytest.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.7, 3.8, 3.9, 3.10.2] + python-version: [3.7, 3.8, 3.9, 3.10] runs-on: ${{matrix.os}} steps: From 0e864147cbae0dd24f5df7c3f9f884e3ef4e6545 Mon Sep 17 00:00:00 2001 From: Jan Speller Date: Sat, 21 May 2022 16:51:01 +0200 Subject: [PATCH 3/4] Fix Tests for Python 3.10 --- .github/workflows/run_pytest.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_pytest.yml b/.github/workflows/run_pytest.yml index c4c5751..939bb1f 100644 --- a/.github/workflows/run_pytest.yml +++ b/.github/workflows/run_pytest.yml @@ -15,9 +15,9 @@ jobs: - uses: actions/checkout@v1 - name: Set up Python ${{matrix.python-version}} at ${{matrix.os}} - uses: actions/setup-python@v1 + uses: actions/setup-python@v3 with: - python-version: ${{matrix.python-version}} + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | From aafffaa998d6124ef7ecad6e99dc145ea45c0ab1 Mon Sep 17 00:00:00 2001 From: Jan Speller Date: Sat, 21 May 2022 16:52:36 +0200 Subject: [PATCH 4/4] Fix Tests for Python 3.10 --- .github/workflows/run_pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_pytest.yml b/.github/workflows/run_pytest.yml index 939bb1f..a047d48 100644 --- a/.github/workflows/run_pytest.yml +++ b/.github/workflows/run_pytest.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.7, 3.8, 3.9, 3.10] + python-version: ['3.7', '3.8', '3.9', '3.10'] runs-on: ${{matrix.os}} steps: