Skip to content

Commit

Permalink
1.0.4rc5
Browse files Browse the repository at this point in the history
remove spaces in comma separated ignore inputs
  • Loading branch information
jneilliii committed Nov 26, 2024
1 parent daf48d3 commit e334a46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions octoprint_tplinksmartplug/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def on_after_startup(self):
self.idleTimeout = self._settings.get_int(["idleTimeout"])
self._tplinksmartplug_logger.debug("idleTimeout: %s" % self.idleTimeout)
self.idleIgnoreCommands = self._settings.get(["idleIgnoreCommands"])
self._idleIgnoreCommandsArray = self.idleIgnoreCommands.split(',')
self._idleIgnoreCommandsArray = self.idleIgnoreCommands.replace(" ", "").split(',')
self._tplinksmartplug_logger.debug("idleIgnoreCommands: %s" % self.idleIgnoreCommands)
self.idleTimeoutWaitTemp = self._settings.get_int(["idleTimeoutWaitTemp"])
self._tplinksmartplug_logger.debug("idleTimeoutWaitTemp: %s" % self.idleTimeoutWaitTemp)
Expand Down Expand Up @@ -232,7 +232,7 @@ def on_settings_save(self, data):

self.idleTimeout = self._settings.get_int(["idleTimeout"])
self.idleIgnoreCommands = self._settings.get(["idleIgnoreCommands"])
self._idleIgnoreCommandsArray = self.idleIgnoreCommands.split(',')
self._idleIgnoreCommandsArray = self.idleIgnoreCommands.replace(" ", "").split(',')
self.idleTimeoutWaitTemp = self._settings.get_int(["idleTimeoutWaitTemp"])

if self.powerOffWhenIdle != old_powerOffWhenIdle:
Expand Down Expand Up @@ -920,7 +920,7 @@ def _wait_for_timelapse(self):
def _wait_for_heaters(self):
self._waitForHeaters = True
heaters = self._printer.get_current_temperatures()
ignored_heaters = self._settings.get(["idleIgnoreHeaters"]).split(',')
ignored_heaters = self._settings.get(["idleIgnoreHeaters"]).replace(" ", "").split(',')

for heater, entry in heaters.items():
target = entry.get("target")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
plugin_name = "OctoPrint-TPLinkSmartplug"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "1.0.4rc4"
plugin_version = "1.0.4rc5"

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

0 comments on commit e334a46

Please sign in to comment.