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