mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Add common childsetup interface (#1470)
Add a common interface for the `childsetup` module across `smart` and `smartcam` hubs. Co-authored-by: Teemu R. <tpr@iki.fi>
This commit is contained in:
@@ -41,29 +41,11 @@ async def test_childsetup_pair(
|
||||
[
|
||||
mocker.call(
|
||||
"startScanChildDevice",
|
||||
params={
|
||||
"childControl": {
|
||||
"category": [
|
||||
"camera",
|
||||
"subg.trv",
|
||||
"subg.trigger",
|
||||
"subg.plugswitch",
|
||||
]
|
||||
}
|
||||
},
|
||||
params={"childControl": {"category": cs.supported_categories}},
|
||||
),
|
||||
mocker.call(
|
||||
"getScanChildDeviceList",
|
||||
{
|
||||
"childControl": {
|
||||
"category": [
|
||||
"camera",
|
||||
"subg.trv",
|
||||
"subg.trigger",
|
||||
"subg.plugswitch",
|
||||
]
|
||||
}
|
||||
},
|
||||
{"childControl": {"category": cs.supported_categories}},
|
||||
),
|
||||
mocker.call(
|
||||
"addScanChildDeviceList",
|
||||
@@ -71,10 +53,10 @@ async def test_childsetup_pair(
|
||||
"childControl": {
|
||||
"child_device_list": [
|
||||
{
|
||||
"device_id": "0000000000000000000000000000000000000000",
|
||||
"category": "subg.trigger.button",
|
||||
"device_model": "S200B",
|
||||
"name": "I01BU0tFRF9OQU1FIw====",
|
||||
"device_id": mocker.ANY,
|
||||
"category": mocker.ANY,
|
||||
"device_model": mocker.ANY,
|
||||
"name": mocker.ANY,
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user