We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d56ba commit 6e8c488Copy full SHA for 6e8c488
1 file changed
tests/test_fan.py
@@ -545,10 +545,9 @@ async def test_standing_fan_set_vertical_oscillation_angle_int(byte_value):
545
async def test_standing_fan_set_vertical_oscillation_angle_90():
546
"""Raw-int callers may also use 90 degrees, which maps to byte 0x5F (95)."""
547
standing_fan = create_standing_fan_for_testing()
548
- byte_value = 95
549
await standing_fan.set_vertical_oscillation_angle(90)
550
cmd = standing_fan._send_command.call_args[0][0]
551
- assert cmd == f"{fan.COMMAND_SET_OSCILLATION_PARAMS}FFFF{byte_value:02X}FF"
+ assert cmd == f"{fan.COMMAND_SET_OSCILLATION_PARAMS}FFFF{VerticalOscillationAngle.ANGLE_90.value:02X}FF"
552
553
554
@pytest.mark.asyncio
0 commit comments