diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index fd43c5e..87e9719 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -3,7 +3,7 @@
-
+
@@ -49,13 +49,6 @@
1574193087583
-
- 1574606064523
-
-
-
- 1574606064523
-
1574606292074
@@ -392,7 +385,14 @@
1593348030528
-
+
+ 1593348512259
+
+
+
+ 1593348512259
+
+
diff --git a/octoprint_mystromswitch/static/js/mystromswitch.js b/octoprint_mystromswitch/static/js/mystromswitch.js
index dd1e4ef..86f0bb9 100644
--- a/octoprint_mystromswitch/static/js/mystromswitch.js
+++ b/octoprint_mystromswitch/static/js/mystromswitch.js
@@ -50,7 +50,7 @@ $(function() {
self.onAutomaticPowerOffEnabledChanged = function(){
var cmd = "disablePowerOffAfterFinish";
- if (self.automaticShutdownEnabled()) {
+ if (self.automaticPowerOffEnabled()) {
var cmd = "enablePowerOffAfterFinish";
}
$.ajax({
diff --git a/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 b/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2
index c063687..c82d89c 100644
--- a/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2
+++ b/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2
@@ -3,12 +3,12 @@