Pass raw components to SmartChildDevice init (#1363)

Clean up and consolidate the processing of raw component query responses and simplify the code paths for creating smartcam child devices when supported.
This commit is contained in:
Steven B.
2024-12-11 14:38:38 +00:00
committed by GitHub
parent 8cb5c2e180
commit f8a46f74cd
5 changed files with 51 additions and 39 deletions

View File

@@ -145,7 +145,9 @@ async def test_child_device_type_unknown(caplog):
super().__init__(
SmartDevice("127.0.0.1"),
{"device_id": "1", "category": "foobar"},
{"device", 1},
{
"component_list": [{"id": "device", "ver_code": 1}],
},
)
assert DummyDevice().device_type is DeviceType.Unknown