mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-07 11:14:02 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user