Renamed devices to components

This commit is contained in:
Joel Collins 2020-01-13 11:08:05 +00:00
parent 6b99873d53
commit 4003e4e65c
11 changed files with 60 additions and 50 deletions

View file

@ -6,7 +6,7 @@ from functools import reduce
from openflexure_microscope.camera.base import generate_basename
from openflexure_microscope.common.flask_labthings.find import (
find_device,
find_component,
find_extension,
)
from openflexure_microscope.common.flask_labthings.extensions import BaseExtension
@ -360,7 +360,7 @@ class TileScanAPI(Resource):
)
@marshal_task
def post(self, args):
microscope = find_device("org.openflexure.microscope")
microscope = find_component("org.openflexure.microscope")
if not microscope:
abort(503, "No microscope connected. Unable to autofocus.")