Last active
January 23, 2018 00:13
-
-
Save kantlivelong/00f66d0d733bb231f0ccb4953b17a6f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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