Skip to content

Commit

Permalink
fix(api): fix multiple h/s bugs (#10727)
Browse files Browse the repository at this point in the history
Closes #10605, Closes #10258

Co-authored-by: Mike Cousins <[email protected]>
  • Loading branch information
sanni-t and mcous authored Jun 13, 2022
1 parent 9116db1 commit b8c7c88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/src/opentrons/drivers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def parse_key_values(value: str) -> Dict[str, str]:

def parse_optional_number(value: str, rounding_val: int) -> Optional[float]:
"""Convert number to float. 'none' will be converted to None"""
return None if value == "none" else parse_number(value, rounding_val)
return None if value.lower() == "none" else parse_number(value, rounding_val)


def parse_number(value: str, rounding_val: int) -> float:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def execute(self, params: DeactivateHeaterParams) -> DeactivateHeaterResul
)

if hs_hardware_module is not None:
await hs_hardware_module.start_set_temperature(celsius=0)
await hs_hardware_module.deactivate_heater()

return DeactivateHeaterResult()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ async def test_deactivate_heater(
).then_return(hs_hardware)

result = await subject.execute(data)
decoy.verify(await hs_hardware.start_set_temperature(celsius=0), times=1)
decoy.verify(await hs_hardware.deactivate_heater(), times=1)
assert result == heater_shaker.DeactivateHeaterResult()

0 comments on commit b8c7c88

Please sign in to comment.