mirror of
				https://github.com/python-kasa/python-kasa.git
				synced 2025-11-04 06:32:07 +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)_2.0_1.0.3.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								tests/fixtures/iot/HS300(US)_2.0_1.0.3.json
									
									
									
									
										vendored
									
									
								
							@@ -11,12 +11,12 @@
 | 
			
		||||
    },
 | 
			
		||||
    "system": {
 | 
			
		||||
        "get_sysinfo": {
 | 
			
		||||
            "alias": "TP-LINK_Power Strip_5C33",
 | 
			
		||||
            "alias": "#MASKED_NAME#",
 | 
			
		||||
            "child_num": 6,
 | 
			
		||||
            "children": [
 | 
			
		||||
                {
 | 
			
		||||
                    "alias": "Plug 1",
 | 
			
		||||
                    "id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031900",
 | 
			
		||||
                    "alias": "#MASKED_NAME# 1",
 | 
			
		||||
                    "id": "SCRUBBED_CHILD_DEVICE_ID_1",
 | 
			
		||||
                    "next_action": {
 | 
			
		||||
                        "type": -1
 | 
			
		||||
                    },
 | 
			
		||||
@@ -24,8 +24,8 @@
 | 
			
		||||
                    "state": 0
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "alias": "Plug 2",
 | 
			
		||||
                    "id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031901",
 | 
			
		||||
                    "alias": "#MASKED_NAME# 2",
 | 
			
		||||
                    "id": "SCRUBBED_CHILD_DEVICE_ID_2",
 | 
			
		||||
                    "next_action": {
 | 
			
		||||
                        "type": -1
 | 
			
		||||
                    },
 | 
			
		||||
@@ -33,8 +33,8 @@
 | 
			
		||||
                    "state": 0
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "alias": "Plug 3",
 | 
			
		||||
                    "id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031902",
 | 
			
		||||
                    "alias": "#MASKED_NAME# 3",
 | 
			
		||||
                    "id": "SCRUBBED_CHILD_DEVICE_ID_3",
 | 
			
		||||
                    "next_action": {
 | 
			
		||||
                        "type": -1
 | 
			
		||||
                    },
 | 
			
		||||
@@ -42,8 +42,8 @@
 | 
			
		||||
                    "state": 0
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "alias": "Plug 4",
 | 
			
		||||
                    "id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031903",
 | 
			
		||||
                    "alias": "#MASKED_NAME# 4",
 | 
			
		||||
                    "id": "SCRUBBED_CHILD_DEVICE_ID_4",
 | 
			
		||||
                    "next_action": {
 | 
			
		||||
                        "type": -1
 | 
			
		||||
                    },
 | 
			
		||||
@@ -51,8 +51,8 @@
 | 
			
		||||
                    "state": 0
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "alias": "Plug 5",
 | 
			
		||||
                    "id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031904",
 | 
			
		||||
                    "alias": "#MASKED_NAME# 5",
 | 
			
		||||
                    "id": "SCRUBBED_CHILD_DEVICE_ID_5",
 | 
			
		||||
                    "next_action": {
 | 
			
		||||
                        "type": -1
 | 
			
		||||
                    },
 | 
			
		||||
@@ -60,8 +60,8 @@
 | 
			
		||||
                    "state": 0
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
                    "alias": "Plug 6",
 | 
			
		||||
                    "id": "8006AF35494E7DB13DDE9B8F40BF2E001E77031905",
 | 
			
		||||
                    "alias": "#MASKED_NAME# 6",
 | 
			
		||||
                    "id": "SCRUBBED_CHILD_DEVICE_ID_6",
 | 
			
		||||
                    "next_action": {
 | 
			
		||||
                        "type": -1
 | 
			
		||||
                    },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user