Skip to content

Commit

Permalink
Add KP401 fixture (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 11, 2021
1 parent cf151ea commit 85a618f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
13 changes: 12 additions & 1 deletion kasa/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,18 @@
}


PLUGS = {"HS100", "HS103", "HS105", "HS110", "HS200", "HS210", "EP10", "KP115", "KP105"}
PLUGS = {
"HS100",
"HS103",
"HS105",
"HS110",
"HS200",
"HS210",
"EP10",
"KP115",
"KP105",
"KP401",
}
STRIPS = {"HS107", "HS300", "KP303", "KP400", "EP40"}
DIMMERS = {"HS220"}

Expand Down
32 changes: 32 additions & 0 deletions kasa/tests/fixtures/KP401(US)_1.0_1.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"system": {
"get_sysinfo": {
"active_mode": "none",
"alias": "Kp401",
"dev_name": "Smart Outdoor Plug",
"deviceId": "0000000000000000000000000000000000000000",
"err_code": 0,
"feature": "TIM",
"hwId": "00000000000000000000000000000000",
"hw_ver": "1.0",
"icon_hash": "",
"latitude_i": 0,
"led_off": 0,
"longitude_i": 0,
"mac": "00:00:00:00:00:00",
"mic_type": "IOT.SMARTPLUGSWITCH",
"model": "KP401(US)",
"next_action": {
"type": -1
},
"ntc_state": 0,
"oemId": "00000000000000000000000000000000",
"on_time": 127,
"relay_state": 1,
"rssi": -56,
"status": "new",
"sw_ver": "1.0.0 Build 201221 Rel.090515",
"updating": 0
}
}
}

0 comments on commit 85a618f

Please sign in to comment.