@@ -89,12 +89,12 @@ async def mock_get_basic_info(arg):
8989 (
9090 bytearray (b"\x01 \x02 W\x82 g\xf5 \xde 4\x01 =dPP\x03 \x14 P\x00 \x00 \x00 \x00 " ),
9191 bytearray (b"\x01 W\x0b \x17 \x01 " ),
92- [87 , True , False , "NORMAL " , 61 , 1.1 ],
92+ [87 , True , False , "normal " , 61 , 1.1 ],
9393 ),
9494 (
9595 bytearray (b"\x01 \x02 U\xc2 g\xf5 \xde 4\x04 +dPP\x03 \x14 P\x00 \x00 \x00 \x00 " ),
9696 bytearray (b"\x01 U\x0b \x17 \x01 " ),
97- [85 , True , True , "BABY " , 43 , 1.1 ],
97+ [85 , True , True , "baby " , 43 , 1.1 ],
9898 ),
9999 ],
100100)
@@ -120,9 +120,9 @@ async def mock_get_basic_info(arg):
120120
121121@pytest .mark .asyncio
122122async def test_set_preset_mode ():
123- fan_device = create_device_for_command_testing ({"mode" : "BABY " })
124- await fan_device .set_preset_mode ("BABY " )
125- assert fan_device .get_current_mode () == "BABY "
123+ fan_device = create_device_for_command_testing ({"mode" : "baby " })
124+ await fan_device .set_preset_mode ("baby " )
125+ assert fan_device .get_current_mode () == "baby "
126126
127127
128128@pytest .mark .asyncio
@@ -169,4 +169,4 @@ async def test_turn_off():
169169
170170
171171def test_get_modes ():
172- assert FanMode .get_modes () == ["NORMAL " , "NATURAL " , "SLEEP " , "BABY " ]
172+ assert FanMode .get_modes () == ["normal " , "natural " , "sleep " , "baby " ]
0 commit comments