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 <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-03-18 08:22:12 -04:00
parent e2894b9907
commit e251f26487
1 changed files with 2 additions and 2 deletions

View File

@ -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)