mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-11-14 14:18:41 +00:00
Update dump_devinfo for raw discovery json and common redactors (#1358)
Some checks failed
CI / Perform linting checks (3.13) (push) Waiting to run
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.13) (push) Blocked by required conditions
CodeQL checks / Analyze (python) (push) Has been cancelled
Some checks failed
CI / Perform linting checks (3.13) (push) Waiting to run
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.13) (push) Blocked by required conditions
CodeQL checks / Analyze (python) (push) Has been cancelled
This PR does a few related things to dump_devinfo: - Store the raw discovery result in the fixture. - Consolidate redaction logic so it's not duplicated in dump_devinfo. - Update existing fixtures to: - Store raw discovery result under `result` - Use `SCRUBBED_CHILD_DEVICE_ID` everywhere - Have correct values as per the consolidated redactors.
This commit is contained in:
26
tests/fixtures/iot/HS300(US)_1.0_1.0.21.json
vendored
26
tests/fixtures/iot/HS300(US)_1.0_1.0.21.json
vendored
@@ -10,12 +10,12 @@
|
||||
},
|
||||
"system": {
|
||||
"get_sysinfo": {
|
||||
"alias": "TP-LINK_Power Strip_2CA9",
|
||||
"alias": "#MASKED_NAME#",
|
||||
"child_num": 6,
|
||||
"children": [
|
||||
{
|
||||
"alias": "Home CameraPC",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED00",
|
||||
"alias": "#MASKED_NAME# 1",
|
||||
"id": "SCRUBBED_CHILD_DEVICE_ID_1",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
@@ -23,8 +23,8 @@
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Home Firewalla",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED01",
|
||||
"alias": "#MASKED_NAME# 2",
|
||||
"id": "SCRUBBED_CHILD_DEVICE_ID_2",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
@@ -32,8 +32,8 @@
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Home Cox modem",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED02",
|
||||
"alias": "#MASKED_NAME# 3",
|
||||
"id": "SCRUBBED_CHILD_DEVICE_ID_3",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
@@ -41,8 +41,8 @@
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Home rpi3-2",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED03",
|
||||
"alias": "#MASKED_NAME# 4",
|
||||
"id": "SCRUBBED_CHILD_DEVICE_ID_4",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
@@ -50,8 +50,8 @@
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Home Camera Switch",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED05",
|
||||
"alias": "#MASKED_NAME# 5",
|
||||
"id": "SCRUBBED_CHILD_DEVICE_ID_5",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
@@ -59,8 +59,8 @@
|
||||
"state": 1
|
||||
},
|
||||
{
|
||||
"alias": "Home Network Switch",
|
||||
"id": "800623145DFF1AA096363EFD161C2E661A9D8DED04",
|
||||
"alias": "#MASKED_NAME# 6",
|
||||
"id": "SCRUBBED_CHILD_DEVICE_ID_6",
|
||||
"next_action": {
|
||||
"type": -1
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user