diff --git a/src/octoprint/printer/profile.py b/src/octoprint/printer/profile.py index c64f6f23..e2c16a76 100644 --- a/src/octoprint/printer/profile.py +++ b/src/octoprint/printer/profile.py @@ -34,7 +34,7 @@ class BedTypes(object): @classmethod def values(cls): - return [getattr(cls, name) for name in cls.__dict__ if not name.startswith("__")] + return [getattr(cls, name) for name in cls.__dict__ if not (name.startswith("__") or name == "values")] class BedOrigin(object): LOWERLEFT = "lowerleft" @@ -42,7 +42,7 @@ class BedOrigin(object): @classmethod def values(cls): - return [getattr(cls, name) for name in cls.__dict__ if not name.startswith("__")] + return [getattr(cls, name) for name in cls.__dict__ if not (name.startswith("__") or name == "values")] class PrinterProfileManager(object): """