Skip to content

Commit

Permalink
fixup: remove accidental hardware.home inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed Jun 24, 2021
1 parent 8b1ac56 commit bac4cab
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions robot-server/robot_server/sessions/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
from typing import Optional
from typing_extensions import Literal

from opentrons.hardware_control import ThreadManager
from robot_server.errors import ErrorDetails, ErrorResponse

from robot_server.service.dependencies import (
get_current_time,
get_unique_id,
get_hardware,
)
from robot_server.service.dependencies import get_current_time, get_unique_id
from robot_server.service.json_api import (
RequestModel,
ResponseModel,
Expand Down Expand Up @@ -218,7 +213,6 @@ async def create_session_action(
session_view: SessionView = Depends(SessionView),
session_store: SessionStore = Depends(get_session_store),
engine_store: EngineStore = Depends(get_engine_store),
hardware_api: ThreadManager = Depends(get_hardware),
action_id: str = Depends(get_unique_id),
created_at: datetime = Depends(get_current_time),
) -> ResponseModel[SessionAction]:
Expand All @@ -244,7 +238,8 @@ async def create_session_action(
)

# TODO(mc, 2021-06-11): support actions other than `start`
await hardware_api.home()
# TODO(mc, 2021-06-24): ensure the engine homes pipette plungers
# before starting the protocol run
engine_store.runner.play()

except SessionNotFoundError as e:
Expand Down

0 comments on commit bac4cab

Please sign in to comment.