Skip to content

Commit

Permalink
Merge pull request #98 from borisbu/develop
Browse files Browse the repository at this point in the history
Releasing 2.0.2
  • Loading branch information
RobinTail authored Jul 24, 2023
2 parents 587e21f + b5721c0 commit 8fa74a0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Version 2

### 2.0.2

- 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

- Fixed turning non-inverted relays ON and executing the corresponding optional OS Command when start printing.
Expand Down
6 changes: 3 additions & 3 deletions octoprint_octorelay/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion octoprint_octorelay/test__init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.2"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit 8fa74a0

Please sign in to comment.