From 809369f783c7d619a31a0a6087ecf1749a5a6833 Mon Sep 17 00:00:00 2001 From: David Zingg Date: Wed, 1 Jul 2020 21:59:36 +0200 Subject: [PATCH] #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