Skip to content

Commit

Permalink
Add KL60 US KP105 UK fixture (#233)
Browse files Browse the repository at this point in the history
* Add KL60 US fixture

* Add KP105 UK fixture

* update test
  • Loading branch information
bdraco committed Oct 9, 2021
1 parent e06b9a7 commit cf151ea
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 20 deletions.
2 changes: 1 addition & 1 deletion kasa/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}


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

Expand Down
34 changes: 15 additions & 19 deletions kasa/tests/fixtures/KL60(US)_1.0_1.1.13.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,26 @@
"get_realtime": {
"current_ma": 0,
"err_code": 0,
"power_mw": 0,
"power_mw": 5200,
"total_wh": 0,
"voltage_mv": 0
}
},
"smartlife.iot.smartbulb.lightingservice": {
"get_light_state": {
"dft_on_state": {
"brightness": 69,
"color_temp": 2000,
"hue": 0,
"mode": "normal",
"saturation": 0
},
"brightness": 100,
"color_temp": 2000,
"err_code": 0,
"on_off": 0
"hue": 0,
"mode": "normal",
"on_off": 1,
"saturation": 0
}
},
"system": {
"get_sysinfo": {
"active_mode": "none",
"alias": "Fil",
"alias": "Gold fil",
"ctrl_protocols": {
"name": "Linkie",
"version": "1.0"
Expand All @@ -42,14 +40,12 @@
"is_variable_color_temp": 0,
"latitude_i": 0,
"light_state": {
"dft_on_state": {
"brightness": 69,
"color_temp": 2000,
"hue": 0,
"mode": "normal",
"saturation": 0
},
"on_off": 0
"brightness": 100,
"color_temp": 2000,
"hue": 0,
"mode": "normal",
"on_off": 1,
"saturation": 0
},
"longitude_i": 0,
"mic_mac": "000000000000",
Expand Down Expand Up @@ -86,7 +82,7 @@
"saturation": 0
}
],
"rssi": -55,
"rssi": -41,
"status": "new",
"sw_ver": "1.1.13 Build 210524 Rel.082619"
}
Expand Down
33 changes: 33 additions & 0 deletions kasa/tests/fixtures/KP105(UK)_1.0_1.0.7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"system": {
"get_sysinfo": {
"active_mode": "none",
"alias": "Uk plug",
"dev_name": "Smart Wi-Fi 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": "KP105(UK)",
"next_action": {
"type": -1
},
"ntc_state": 0,
"obd_src": "tplink",
"oemId": "00000000000000000000000000000000",
"on_time": 0,
"relay_state": 0,
"rssi": -48,
"status": "new",
"sw_ver": "1.0.7 Build 210506 Rel.153510",
"updating": 0
}
}
}

0 comments on commit cf151ea

Please sign in to comment.