From 5876ba30b01175e8aa2562f724de475ffb4c653c Mon Sep 17 00:00:00 2001 From: jneilliii Date: Fri, 9 Apr 2021 23:42:20 -0400 Subject: [PATCH] fix bug introduced in last version preventing addition of new devices --- octoprint_tasmota/static/js/tasmota.js | 4 +++- octoprint_tasmota/templates/tasmota_settings.jinja2 | 2 +- setup.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/octoprint_tasmota/static/js/tasmota.js b/octoprint_tasmota/static/js/tasmota.js index a2e783b..2f7f565 100644 --- a/octoprint_tasmota/static/js/tasmota.js +++ b/octoprint_tasmota/static/js/tasmota.js @@ -299,7 +299,9 @@ $(function() { 'event_on_error':ko.observable(false), 'event_on_disconnect':ko.observable(false), 'event_on_upload':ko.observable(false), - 'event_on_connecting':ko.observable(false)}); + 'event_on_connecting':ko.observable(false), + 'is_led':ko.observable(false), + 'brightness':ko.observable(50)}); self.settings.settings.plugins.tasmota.arrSmartplugs.push(self.selectedPlug()); $("#TasmotaEditor").modal("show"); } diff --git a/octoprint_tasmota/templates/tasmota_settings.jinja2 b/octoprint_tasmota/templates/tasmota_settings.jinja2 index 8c9c30d..f3db9e6 100644 --- a/octoprint_tasmota/templates/tasmota_settings.jinja2 +++ b/octoprint_tasmota/templates/tasmota_settings.jinja2 @@ -213,7 +213,7 @@
-
%
+
%
diff --git a/setup.py b/setup.py index 72f5864..5e6322f 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ plugin_name = "OctoPrint-Tasmota" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "1.0.2" +plugin_version = "1.0.3" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module