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:
parent
e2894b9907
commit
e251f26487
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue