Skip to content

Commit

Permalink
Add start_set_temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Maggio committed Jul 20, 2022
1 parent 0926e14 commit 4beaaca
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,12 @@ async def test_temp(heatershaker: HeaterShaker) -> None:

# Have to wait for next poll because target temp will not update until then
await heatershaker.wait_next_poll()
assert heatershaker.target_temperature == 50.0
assert heatershaker.temperature != 50.0
await heatershaker.start_set_temperature(100.0)
assert heatershaker.target_temperature == 100.0
assert heatershaker.temperature != 100.0

await heatershaker.await_temperature(50.0)
assert heatershaker.target_temperature == 50.0
await heatershaker.await_temperature(100.0)
assert heatershaker.target_temperature == 100.0

# Acceptable delta is 0.7 degrees
assert 49.3 <= heatershaker.temperature <= 50.7
assert 99.3 <= heatershaker.temperature <= 100.7

0 comments on commit 4beaaca

Please sign in to comment.