Skip to content

Commit

Permalink
Merge pull request #37 from Salamafet/dev
Browse files Browse the repository at this point in the history
USB disconnection before shutdown
  • Loading branch information
Salamafet authored Jan 18, 2021
2 parents 7df8b46 + eb94cf8 commit 5e33ee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions octoprint_phom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def on_event(self, event, payload):
def turn_off(self):
# central function with the turn off implementation
turned_off = False
self._printer.disconnect()
if(self._settings.get(['auto_off_type']) == 'direct'):
requests.put("http://{}/api/{}/lights/{}/state".format(self._settings.get(['hue_ip']), self._settings.get(['hue_token']), self._settings.get(['light_id'])), json={"on": False})
turned_off = True
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
plugin_name = "Ophom"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "1.3.3"
plugin_version = "1.3.4"

# 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 5e33ee5

Please sign in to comment.