From ad42478718db28ce5108de4cc0e240da24e20dae Mon Sep 17 00:00:00 2001 From: Brad Morgan Date: Mon, 30 Mar 2020 17:00:42 -0600 Subject: [PATCH] - Add __plugin_pythoncompat__ --- octoprint_FanSpeedMirror/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/octoprint_FanSpeedMirror/__init__.py b/octoprint_FanSpeedMirror/__init__.py index 1ae6314..a5165fb 100644 --- a/octoprint_FanSpeedMirror/__init__.py +++ b/octoprint_FanSpeedMirror/__init__.py @@ -137,11 +137,12 @@ def get_update_information(self): # ("OctoPrint-PluginSkeleton"), you may define that here. Same goes for the other metadata derived from setup.py that # can be overwritten via __plugin_xyz__ control properties. See the documentation for that. __plugin_name__ = "Fan Speed Mirror" +__plugin_pythoncompat__ = ">=2.7,<4" def __plugin_load__(): global __plugin_implementation__ __plugin_implementation__ = FanSpeedMirror() - + global __plugin_hooks__ __plugin_hooks__ = { "octoprint.comm.protocol.gcode.sent": __plugin_implementation__.mirror_fan,