@@ -792,13 +792,13 @@ async def test_node_relay_and_power(self, monkeypatch: pytest.MonkeyPatch) -> No
792792 # Test blocked async switching due to relay-lock active
793793 await stick .nodes ["0098765432101234" ].set_relay_lock (True )
794794 assert stick .nodes ["0098765432101234" ].relay_lock
795- assert stick .nodes ["0098765432101234" ].relay_lock .lock_state
795+ assert stick .nodes ["0098765432101234" ].relay_lock .state
796796 with pytest .raises (pw_exceptions .NodeError ):
797797 await stick .nodes ["0098765432101234" ].set_relay (True )
798798 assert not stick .nodes ["0098765432101234" ].relay
799799 # Make sure to turn lock off for further testing
800800 await stick .nodes ["0098765432101234" ].set_relay_lock (False )
801- assert not stick .nodes ["0098765432101234" ].relay_lock .lock_state
801+ assert not stick .nodes ["0098765432101234" ].relay_lock .state
802802
803803 # Test async switching back from off to on
804804 self .test_relay_state_on = asyncio .Future ()
@@ -2513,7 +2513,7 @@ async def test_node_discovery_and_load(
25132513 assert state [pw_api .NodeFeature .INFO ].version == "070073"
25142514
25152515 assert state [pw_api .NodeFeature .RELAY ].state
2516- assert not state [pw_api .NodeFeature .RELAY_LOCK ].lock_state
2516+ assert not state [pw_api .NodeFeature .RELAY_LOCK ].state
25172517
25182518 # Check 1111111111111111
25192519 get_state_timestamp = dt .now (UTC ).replace (minute = 0 , second = 0 , microsecond = 0 )
@@ -2550,7 +2550,7 @@ async def test_node_discovery_and_load(
25502550 )
25512551 assert state [pw_api .NodeFeature .AVAILABLE ].state
25522552 assert state [pw_api .NodeFeature .RELAY ].state
2553- assert not state [pw_api .NodeFeature .RELAY_LOCK ].lock_state
2553+ assert not state [pw_api .NodeFeature .RELAY_LOCK ].state
25542554
25552555
25562556 # region Scan
0 commit comments