From cba3367d2b309dcf925ae570aeaeac544f3d075a Mon Sep 17 00:00:00 2001 From: David Zingg Date: Wed, 1 Jul 2020 20:32:27 +0200 Subject: [PATCH] #21 Add PowerOFF when print is finished --- .idea/workspace.xml | 17 ++++++++--------- octoprint_mystromswitch/__init__.py | 4 ++-- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 275c59e..bc2b8ac 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,6 @@ - diff --git a/octoprint_mystromswitch/__init__.py b/octoprint_mystromswitch/__init__.py index dbda3d8..412446f 100644 --- a/octoprint_mystromswitch/__init__.py +++ b/octoprint_mystromswitch/__init__.py @@ -193,8 +193,8 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin, data["automaticShutdownEnabled"] = self.shutdownAfterPrintFinished data["automaticPowerOffEnabled"] = self.powerOffAfterPrintFinished self._plugin_manager.send_plugin_message(self._identifier, data) - self._logger.info("automaticShutdownEnabled: %s" % self.automaticShutdownEnabled) - self._logger.info("automaticPowerOffEnabled: %s" % self.automaticPowerOffEnabled) + self._logger.info("automaticShutdownEnabled: %s" % self.shutdownAfterPrintFinished) + self._logger.info("automaticPowerOffEnabled: %s" % self.powerOffAfterPrintFinished) return except (requests.exceptions.ConnectionError, ValueError) as e: self._logger.exception(e)