From 432eeadc5a2caca81dbd632a86164f48749cd578 Mon Sep 17 00:00:00 2001 From: Anna Bocharova Date: Mon, 24 Jul 2023 23:08:48 +0200 Subject: [PATCH 1/5] Listing the required API param pin. (#97) --- octoprint_octorelay/__init__.py | 6 +++--- octoprint_octorelay/test__init.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/octoprint_octorelay/__init__.py b/octoprint_octorelay/__init__.py index 23ed0e58..241fe01b 100755 --- a/octoprint_octorelay/__init__.py +++ b/octoprint_octorelay/__init__.py @@ -202,9 +202,9 @@ def on_shutdown(self): def get_api_commands(self): return { - "update": [], - "getStatus": [], - "listAllStatus":[], + "update": ["pin"], + "getStatus": ["pin"], + "listAllStatus": [], } def on_api_command(self, command, data): diff --git a/octoprint_octorelay/test__init.py b/octoprint_octorelay/test__init.py index 3d2a69a6..5f2f346e 100644 --- a/octoprint_octorelay/test__init.py +++ b/octoprint_octorelay/test__init.py @@ -184,7 +184,7 @@ def test_get_assets(self): self.assertEqual(actual, expected) def test_get_api_commands(self): - expected = { "update": [], "getStatus": [], "listAllStatus": [] } + expected = { "update": [ "pin" ], "getStatus": [ "pin" ], "listAllStatus": [] } actual = self.plugin_instance.get_api_commands() self.assertEqual(actual, expected) From c46bb5ed98345d8ecb3f61e06ef769512b412945 Mon Sep 17 00:00:00 2001 From: Robin Tail Date: Mon, 24 Jul 2023 23:59:51 +0200 Subject: [PATCH 2/5] Changelog: upcoming 2.0.2. --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88747d49..40be62e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## Version 2 +### 2.0.2 + +- Fixed missing parameter `pin` for API commands `update` and `getStatus`. + - Thanks to [@jneilliii](https://github.com/jneilliii) for the contribution. + ### 2.0.1 - Fixed turning non-inverted relays ON and executing the corresponding optional OS Command when start printing. From c37a8ea16aea81938ddb9e4429713715e416b915 Mon Sep 17 00:00:00 2001 From: Robin Tail Date: Tue, 25 Jul 2023 00:00:15 +0200 Subject: [PATCH 3/5] Next version 2.0.2rc1. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6456b5e9..0f463a38 100755 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ plugin_name = "OctoRelay" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "2.0.1" +plugin_version = "2.0.2rc1" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module From 22400a0a7f4be9d2c83bdb4e0b3e9770da14ddf2 Mon Sep 17 00:00:00 2001 From: Robin Tail Date: Tue, 25 Jul 2023 00:02:15 +0200 Subject: [PATCH 4/5] Changelog: minor. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40be62e9..acee5d99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ### 2.0.2 -- Fixed missing parameter `pin` for API commands `update` and `getStatus`. +- Fixed missing requirement on the `pin` parameter for API commands `update` and `getStatus`. - Thanks to [@jneilliii](https://github.com/jneilliii) for the contribution. ### 2.0.1 From b5721c00919480d7362560266d3e838f98c46a34 Mon Sep 17 00:00:00 2001 From: Robin Tail Date: Tue, 25 Jul 2023 00:10:11 +0200 Subject: [PATCH 5/5] Next version 2.0.2. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0f463a38..bcb53ff1 100755 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ plugin_name = "OctoRelay" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "2.0.2rc1" +plugin_version = "2.0.2" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module