diff --git a/octoprint_fanspeedslider/__init__.py b/octoprint_fanspeedslider/__init__.py index 89c8328..7524879 100644 --- a/octoprint_fanspeedslider/__init__.py +++ b/octoprint_fanspeedslider/__init__.py @@ -9,6 +9,10 @@ class FanSliderPlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplatePlugin, octoprint.plugin.SettingsPlugin, octoprint.plugin.AssetPlugin): + + def __init__(self): + self.minPWM=0, + self.maxPWM=255 def on_after_startup(self): self.get_settings_updates()