@@ -1494,7 +1494,7 @@ async def test_creating_request_messages(self) -> None:
14941494 self .dummy_fn ,
14951495 b"1111222233334444" ,
14961496 5 , # Delay in minutes when signal is send when no motion is detected
1497- 30 , # Sensitivity of Motion sensor (High, Medium, Off)
1497+ pw_api . MotionSensitivity . MEDIUM , # Sensitivity of Motion sensor (High, Medium, Off)
14981498 False , # Daylight override to only report motion when lightlevel is below calibrated level
14991499 )
15001500 assert (
@@ -2240,8 +2240,10 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
22402240 assert test_scan .motion_config .daylight_mode
22412241
22422242 # test motion sensitivity level
2243- assert test_scan .sensitivity_level == 30
2244- assert test_scan .motion_config .sensitivity_level == 30
2243+ assert test_scan .sensitivity_level == pw_api .MotionSensitivity .MEDIUM
2244+ assert (
2245+ test_scan .motion_config .sensitivity_level == pw_api .MotionSensitivity .MEDIUM
2246+ )
22452247 assert not await test_scan .set_motion_sensitivity_level (
22462248 pw_api .MotionSensitivity .MEDIUM
22472249 )
@@ -2261,8 +2263,10 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
22612263 await test_scan ._awake_response (awake_response4 ) # pylint: disable=protected-access
22622264 await asyncio .sleep (0.001 ) # Ensure time for task to be executed
22632265 assert not test_scan .motion_config .dirty
2264- assert test_scan .sensitivity_level == 20
2265- assert test_scan .motion_config .sensitivity_level == 20
2266+ assert test_scan .sensitivity_level == pw_api .MotionSensitivity .HIGH
2267+ assert (
2268+ test_scan .motion_config .sensitivity_level == pw_api .MotionSensitivity .HIGH
2269+ )
22662270
22672271 # scan with cache enabled
22682272 mock_stick_controller .send_response = None
0 commit comments