Skip to content

Instantly share code, notes, and snippets.

@kantlivelong
Last active January 23, 2018 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kantlivelong/00f66d0d733bb231f0ccb4953b17a6f1 to your computer and use it in GitHub Desktop.
Save kantlivelong/00f66d0d733bb231f0ccb4953b17a6f1 to your computer and use it in GitHub Desktop.
if is_octoprint_compatible(">=1.3.7"):
return (None, None, self.temps)
else:
prefix = textwrap.dedent(
"""
{{% if plugins is not defined %}}
{{% set plugins = {{}} %}}
{{% endif %}}
{{% set _ = plugins.update({{"{{}}}": {}}}) %}}
""".format("preheat", self.temps))
return (prefix, None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment