Skip to content

Commit

Permalink
fix float on polling check
Browse files Browse the repository at this point in the history
  • Loading branch information
jneilliii committed Jun 19, 2022
1 parent 2bae4b6 commit 5837877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion octoprint_tasmota/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def on_startup(self, host, port):

def on_after_startup(self):
self._logger.info("Tasmota loaded!")
if self._settings.get_boolean(["polling_enabled"]) and self._settings.get_int(["polling_interval"]) > 0:
if self._settings.get_boolean(["polling_enabled"]) and self._settings.get_float(["polling_interval"]) > 0:
self.poll_status = RepeatedTimer(float(self._settings.get_float(["polling_interval"])) * 60,
self.check_statuses)
self.poll_status.start()
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-Tasmota"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "1.1.3rc2"
plugin_version = "1.1.3rc3"

# 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 5837877

Please sign in to comment.