Skip to content

Commit e36c109

Browse files
committed
fix issue with adding plugs with last update
1 parent 523beef commit e36c109

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,9 @@ Once installed go into settings and enter the ip address for your TP-Link Smartp
5858

5959
## Most recent changelog
6060

61-
**[1.0.0](https://github.com/jneilliii/OctoPrint-TPLinkSmartplug/releases/tag/1.0.0)** (04/14/2021)
62-
63-
* clear _autostart_file on print done or canceled events to prevent from auto starting a file on next connect.
64-
* fix missing poll_status in init
65-
* resolve idle timeout issues related to plugs powering off with gcode commands, #254
66-
* change gcode trigger logic for off commands to account for printer buffer, #258
67-
* change index values for strip devices to match labels and the Kasa app, #243
68-
* add sending gcode commands before off and after on, #160, #170
69-
* turn on only if we are closed or errored state with upload event, thanks to @ayufan
70-
* added shutdown event monitoring, #263
71-
* add API endpoint for listing configured plugs
61+
**[1.0.1](https://github.com/jneilliii/OctoPrint-TPLinkSmartplug/releases/tag/1.0.0)** (04/15/2021)
7262

63+
* fix issue introduced with last update that prevented adding new plugs.
7364

7465
### [All releases](https://github.com/jneilliii/OctoPrint-TPLinkSmartplug/releases)
7566

octoprint_tplinksmartplug/static/js/tplinksmartplug.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,15 @@ $(function() {
272272
'thermal_runaway':ko.observable(false),
273273
'event_on_error':ko.observable(false),
274274
'event_on_disconnect':ko.observable(false),
275+
'event_on_shutdown': ko.observable(false),
275276
'automaticShutdownEnabled':ko.observable(false),
276277
'event_on_upload':ko.observable(false),
277278
'event_on_startup':ko.observable(false),
278-
'gcodeCmdOn': ko.observable(false),
279-
'gcodeCmdOff': ko.observable(false),
280-
'gcodeRunCmdOn': ko.observable(''),
281-
'gcodeRunCmdOff': ko.observable('')
282-
});
279+
'gcodeCmdOn': ko.observable(false),
280+
'gcodeCmdOff': ko.observable(false),
281+
'gcodeRunCmdOn': ko.observable(''),
282+
'gcodeRunCmdOff': ko.observable('')
283+
});
283284
self.settings.settings.plugins.tplinksmartplug.arrSmartplugs.push(self.selectedPlug());
284285
$("#TPLinkPlugEditor").modal("show");
285286
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
plugin_name = "OctoPrint-TPLinkSmartplug"
1515

1616
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17-
plugin_version = "1.0.0"
17+
plugin_version = "1.0.1"
1818

1919
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
2020
# module

0 commit comments

Comments
 (0)