From 809369f783c7d619a31a0a6087ecf1749a5a6833 Mon Sep 17 00:00:00 2001 From: David Zingg Date: Wed, 1 Jul 2020 21:59:36 +0200 Subject: [PATCH 1/2] #25 Python 3 Compatibility --- .idea/workspace.xml | 19 ++++++++++--------- octoprint_mystromswitch/__init__.py | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2a0af5c..934bf8e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,8 @@ - + + diff --git a/octoprint_mystromswitch/__init__.py b/octoprint_mystromswitch/__init__.py index 34d01b2..f8c350f 100644 --- a/octoprint_mystromswitch/__init__.py +++ b/octoprint_mystromswitch/__init__.py @@ -168,7 +168,7 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin, self._logger.info("Shutting down system with command: {command}".format(command=shutdown_command)) try: import sarge - p = sarge.run(shutdown_command, async=True) + p = sarge.run(shutdown_command, async_=True) except Exception as e: self._logger.exception("Error when shutting down: {error}".format(error=e)) return From 96c2e954faac250d0f21dd8b0c8ba1a6bf5af681 Mon Sep 17 00:00:00 2001 From: David Zingg Date: Wed, 1 Jul 2020 22:01:36 +0200 Subject: [PATCH 2/2] #25 Python 3 Compatibility --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index dc851fd..0372894 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ plugin_package = "octoprint_mystromswitch" plugin_name = "OctoPrint-MyStromSwitch" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "1.1.0" +plugin_version = "1.1.1" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module