@@ -575,7 +575,7 @@ async def test_stick_node_discovered_subscription(
575575 assert mac_awake_node == "5555555555555555"
576576 unsub_awake ()
577577
578- assert await stick .nodes ["5555555555555555" ].load ()
578+ assert await stick .nodes ["5555555555555555" ].load () is None
579579 assert stick .nodes ["5555555555555555" ].node_info .firmware == dt (
580580 2011 , 6 , 27 , 8 , 55 , 44 , tzinfo = UTC
581581 )
@@ -1691,7 +1691,6 @@ async def makedirs(cache_dir: str, exist_ok: bool) -> None:
16911691 "FEDCBA9876543210" : pw_api .NodeType .CIRCLE ,
16921692 "1298347650AFBECD" : pw_api .NodeType .SCAN ,
16931693 }
1694- pw_nw_cache .update_nodetypes ("1234ABCD4321FEDC" , pw_api .NodeType .STEALTH )
16951694
16961695 with patch ("aiofiles.threadpool.sync_open" , return_value = mock_file_stream ):
16971696 # await pw_nw_cache.save_cache()
@@ -1952,7 +1951,7 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
19521951
19531952 assert test_sed .node_info .is_battery_powered
19541953 assert test_sed .is_battery_powered
1955- assert await test_sed .load () is None
1954+ assert await test_sed .load ()
19561955 assert sorted (test_sed .features ) == sorted (
19571956 (
19581957 pw_api .NodeFeature .AVAILABLE ,
@@ -2169,7 +2168,7 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
21692168 relay_state = None ,
21702169 )
21712170 await test_scan .update_node_details (node_info )
2172- assert await test_scan .load ()
2171+ assert await test_scan .load () is None
21732172
21742173 # test motion reset timer
21752174 assert test_scan .reset_timer == 10
@@ -2278,7 +2277,7 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
22782277 )
22792278 await test_scan .update_node_details (node_info )
22802279 test_scan .cache_enabled = True
2281- assert await test_scan .load ()
2280+ await test_scan .load ()
22822281 assert sorted (test_scan .features ) == sorted (
22832282 (
22842283 pw_api .NodeFeature .AVAILABLE ,
@@ -2357,7 +2356,7 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
23572356 relay_state = None ,
23582357 )
23592358 await test_switch .update_node_details (node_info )
2360- assert await test_switch .load ()
2359+ await test_switch .load ()
23612360
23622361 # Switch specific defaults
23632362 assert test_switch .switch is False
@@ -2380,7 +2379,7 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
23802379 await test_switch .update_node_details (node_info )
23812380 test_switch .cache_enabled = True
23822381 assert test_switch .cache_enabled is True
2383- assert await test_switch .load ()
2382+ await test_switch .load ()
23842383 assert sorted (test_switch .features ) == sorted (
23852384 (
23862385 pw_api .NodeFeature .AVAILABLE ,
0 commit comments