diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index bc2b8ac..39f194c 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -47,13 +47,6 @@
1574193087583
-
- 1574707826329
-
-
-
- 1574707826329
-
1574708023156
@@ -390,7 +383,14 @@
1593628251128
-
+
+ 1593628347105
+
+
+
+ 1593628347105
+
+
diff --git a/octoprint_mystromswitch/__init__.py b/octoprint_mystromswitch/__init__.py
index 412446f..9fe069c 100644
--- a/octoprint_mystromswitch/__init__.py
+++ b/octoprint_mystromswitch/__init__.py
@@ -77,10 +77,10 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
self.rememberShutdown = self._settings.get_boolean(["rememberShutdown"])
self._logger.info("rememberShutdown: %s" % self.rememberShutdown)
- self.lastPowerOff = self._settings.get_int(["lastPowerOff"])
+ self.lastPowerOff = self._settings.get_boolean(["lastPowerOff"])
self._logger.info("lastPowerOff: %s" % self.lastPowerOff)
- self.lastShutdown = self._settings.get_int(["lastShutdown"])
+ self.lastShutdown = self._settings.get_boolean(["lastShutdown"])
self._logger.info("lastShutdown: %s" % self.lastShutdown)
if self.rememberShutdown: