From e2894b99072ab2207e31f03e914698ea9c139696 Mon Sep 17 00:00:00 2001 From: Arksine Date: Thu, 18 Mar 2021 08:20:53 -0400 Subject: [PATCH] machine: replace references to "plugin" with "component" Signed-off-by: Eric Callahan --- moonraker/plugins/machine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonraker/plugins/machine.py b/moonraker/plugins/machine.py index 33969c8..4c1c55b 100644 --- a/moonraker/plugins/machine.py +++ b/moonraker/plugins/machine.py @@ -68,7 +68,7 @@ class Machine: return "ok" async def _execute_cmd(self, cmd): - shell_command = self.server.lookup_plugin('shell_command') + shell_command = self.server.lookup_component('shell_command') scmd = shell_command.build_shell_command(cmd, None) try: await scmd.run(timeout=2., verbose=False) @@ -76,5 +76,5 @@ class Machine: logging.exception(f"Error running cmd '{cmd}'") raise -def load_plugin(config): +def load_component(config): return Machine(config)