mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Replace custom deviceconfig serialization with mashumaru (#1274)
This commit is contained in:
10
tests/fixtures/serialization/deviceconfig_camera-aes-https.json
vendored
Normal file
10
tests/fixtures/serialization/deviceconfig_camera-aes-https.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"host": "127.0.0.1",
|
||||
"timeout": 5,
|
||||
"connection_type": {
|
||||
"device_family": "SMART.IPCAMERA",
|
||||
"encryption_type": "AES",
|
||||
"https": true
|
||||
},
|
||||
"uses_http": false
|
||||
}
|
11
tests/fixtures/serialization/deviceconfig_plug-klap.json
vendored
Normal file
11
tests/fixtures/serialization/deviceconfig_plug-klap.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"host": "127.0.0.1",
|
||||
"timeout": 5,
|
||||
"connection_type": {
|
||||
"device_family": "SMART.TAPOPLUG",
|
||||
"encryption_type": "KLAP",
|
||||
"https": false,
|
||||
"login_version": 2
|
||||
},
|
||||
"uses_http": false
|
||||
}
|
10
tests/fixtures/serialization/deviceconfig_plug-xor.json
vendored
Normal file
10
tests/fixtures/serialization/deviceconfig_plug-xor.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"host": "127.0.0.1",
|
||||
"timeout": 5,
|
||||
"connection_type": {
|
||||
"device_family": "IOT.SMARTPLUGSWITCH",
|
||||
"encryption_type": "XOR",
|
||||
"https": false
|
||||
},
|
||||
"uses_http": false
|
||||
}
|
Reference in New Issue
Block a user