data_store: replace refrences to "plugin" with "component"

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-03-18 08:16:56 -04:00
parent ce78e42065
commit 8d93bcf438
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class DataStore:
self._handle_gcode_store_request)
async def _init_sensors(self):
klippy_apis = self.server.lookup_plugin('klippy_apis')
klippy_apis = self.server.lookup_component('klippy_apis')
# Fetch sensors
try:
result = await klippy_apis.query_objects({'heaters': None})
@ -136,5 +136,5 @@ class DataStore:
gc_responses = list(self.gcode_queue)
return {'gcode_store': gc_responses}
def load_plugin(config):
def load_component(config):
return DataStore(config)