Skip to content

Commit 03a0ef3

Browse files
authored
Include component_nego with child fixtures (#858)
1 parent 0ab7436 commit 03a0ef3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

devtools/dump_devinfo.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,14 @@ async def get_smart_test_calls(device: SmartDevice):
500500

501501
# Child component calls
502502
for child_device_id, child_components in child_device_components.items():
503+
test_calls.append(
504+
SmartCall(
505+
module="component_nego",
506+
request=SmartRequest("component_nego"),
507+
should_succeed=True,
508+
child_device_id=child_device_id,
509+
)
510+
)
503511
for component_id, ver_code in child_components.items():
504512
if (requests := get_component_requests(component_id, ver_code)) is not None:
505513
component_test_calls = [
@@ -621,7 +629,8 @@ async def get_smart_fixtures(device: SmartDevice, batch_size: int):
621629
response["get_device_info"]["device_id"] = scrubbed
622630
# If the child is a different model to the parent create a seperate fixture
623631
if (
624-
"get_device_info" in response
632+
"component_nego" in response
633+
and "get_device_info" in response
625634
and (child_model := response["get_device_info"].get("model"))
626635
and child_model != final["get_device_info"]["model"]
627636
):

0 commit comments

Comments
 (0)