Skip to content

Commit

Permalink
chore: Revert "remove home command (#12576)" (#12623)
Browse files Browse the repository at this point in the history
This reverts commit 31a8ea8.

This is a good change that we need to reinstate, but it was removed in favor of the app commanding this home and the app isn't doing that yet - so we need it back until the app work is complete.
  • Loading branch information
sfoster1 authored May 3, 2023
1 parent b681705 commit 337947e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ async def execute(
"""Move the requested mount to a maintenance deck slot."""
hardware_mount = params.mount.to_hw_mount()

await self._hardware_api.home()

calibration_coordinates = self._state_view.labware.get_calibration_coordinates(
offset=_INSTRUMENT_ATTACH_OFFSET
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ async def test_calibration_move_to_location_implementation(
result = await subject.execute(params=params)
assert result == MoveToMaintenancePositionResult()

decoy.verify(
await hardware_api.home(),
times=1,
)

decoy.verify(
await hardware_api.move_to(mount=Mount.LEFT, abs_position=Point(x=1, y=2, z=3)),
times=1,
Expand Down

0 comments on commit 337947e

Please sign in to comment.