From e251f26487c4ca1e5ac9ee4bc0e3d49c9d56d518 Mon Sep 17 00:00:00 2001 From: Arksine Date: Thu, 18 Mar 2021 08:22:12 -0400 Subject: [PATCH] octoprint_compat: replace references to "plugin" with "component" Note that this does not replace references to "Cura" or "Octoprint" plugins, which are also included in this module. Signed-off-by: Eric Callahan --- moonraker/plugins/octoprint_compat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonraker/plugins/octoprint_compat.py b/moonraker/plugins/octoprint_compat.py index f45cd30..b7d6ec0 100644 --- a/moonraker/plugins/octoprint_compat.py +++ b/moonraker/plugins/octoprint_compat.py @@ -76,7 +76,7 @@ class OctoprintCompat: # TODO: shutdown/reboot/restart operations async def _init(self): - self.klippy_apis = self.server.lookup_plugin('klippy_apis') + self.klippy_apis = self.server.lookup_component('klippy_apis') # Fetch heaters try: result = await self.klippy_apis.query_objects({'heaters': None}) @@ -277,5 +277,5 @@ class OctoprintCompat: } -def load_plugin(config): +def load_component(config): return OctoprintCompat(config)