paneldue: replace references to "plugin" with "component"

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-03-18 08:22:53 -04:00
parent e251f26487
commit 891d6bd871
1 changed files with 3 additions and 3 deletions

View File

@ -145,8 +145,8 @@ class PanelDue:
def __init__(self, config):
self.server = config.get_server()
self.ioloop = IOLoop.current()
self.file_manager = self.server.lookup_plugin('file_manager')
self.klippy_apis = self.server.lookup_plugin('klippy_apis')
self.file_manager = self.server.lookup_component('file_manager')
self.klippy_apis = self.server.lookup_component('klippy_apis')
self.kinematics = "none"
self.machine_name = config.get('machine_name', "Klipper")
self.firmware_name = "Repetier | Klipper"
@ -788,5 +788,5 @@ class PanelDue:
msg += f"\nSequence {i}: {gc}"
logging.debug(msg)
def load_plugin(config):
def load_component(config):
return PanelDue(config)