Skip to content

Commit

Permalink
- Add __plugin_pythoncompat__
Browse files Browse the repository at this point in the history
  • Loading branch information
b-morgan committed Mar 30, 2020
1 parent 366f867 commit ad42478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion octoprint_FanSpeedMirror/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ad42478

Please sign in to comment.