diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 87e9719..13eb9d6 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,6 @@
-
@@ -49,13 +48,6 @@
1574193087583
-
- 1574606292074
-
-
-
- 1574606292074
-
1574606712347
@@ -392,7 +384,14 @@
1593348512259
-
+
+ 1593348977898
+
+
+
+ 1593348977898
+
+
diff --git a/octoprint_mystromswitch/static/js/mystromswitch.js b/octoprint_mystromswitch/static/js/mystromswitch.js
index 86f0bb9..1009d26 100644
--- a/octoprint_mystromswitch/static/js/mystromswitch.js
+++ b/octoprint_mystromswitch/static/js/mystromswitch.js
@@ -64,8 +64,8 @@ $(function() {
})
}
- self.automaticShutdownEnabled.subscribe(self.onAutomaticShutdownEnabledChanged,self);
- self.automaticPowerOffEnabled.subscribe(self.onAutomaticPowerOffEnabledChanged,self);
+ self.automaticShutdownEnabled.subscribe(self.onAutomaticShutdownEnabledChanged, self);
+ self.automaticPowerOffEnabled.subscribe(self.onAutomaticPowerOffEnabledChanged, self);
self.onDataUpdaterPluginMessage = function(plugin, data) {
if (plugin != "mystromswitch" && plugin != "octoprint_mystromswitch") {
@@ -83,8 +83,8 @@ $(function() {
self.mystromswitchPowerValue.innerHTML = "myStrom switch not reachable"
self.mystromswitchEnergyValue.innerHTML = "Check url in Plugin Settings"
}
- self.automaticShutdownEnabled = data.automaticShutdownEnabled;
- self.automaticPowerOffEnabled = data.automaticPowerOffEnabled;
+ self.automaticShutdownEnabled(data.automaticShutdownEnabled);
+ self.automaticPowerOffEnabled(data.automaticPowerOffEnabled);
}
}