8000 Add KL60 US KP105 UK fixture (#233) · allandaly/python-kasa@cf151ea · GitHub
[go: up one dir, main page]

Skip to content

Commit cf151ea

Browse files
authored
Add KL60 US KP105 UK fixture (python-kasa#233)
* Add KL60 US fixture * Add KP105 UK fixture * update test
1 parent e06b9a7 commit cf151ea

File tree

3 files changed

+49
-20
lines changed

3 files changed

+49
-20
lines changed

kasa/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242

43-
PLUGS = {"HS100", "HS103", "HS105", "HS110", "HS200", "HS210", "EP10", "KP115"}
43+
PLUGS = {"HS100", "HS103", "HS105", "HS110", "HS200", "HS210", "EP10", "KP115", "KP105"}
4444
STRIPS = {"HS107", "HS300", "KP303", "KP400", "EP40"}
4545
DIMMERS = {"HS220"}
4646

kasa/tests/fixtures/KL60(US)_1.0_1.1.13.json

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,26 @@
33
"get_realtime": {
44
"current_ma": 0,
55
"err_code": 0,
6-
"power_mw": 0,
6+
"power_mw": 5200,
77
"total_wh": 0,
88
"voltage_mv": 0
99
}
1010
},
1111
"smartlife.iot.smartbulb.lightingservice": {
1212
"get_light_state": {
13-
"dft_on_state": {
14-
"brightness": 69,
15-
"color_temp": 2000,
16-
"hue": 0,
17-
"mode": "normal",
18-
"saturation": 0
19-
},
13+
"brightness": 100,
14+
"color_temp": 2000,
2015
"err_code": 0,
21-
"on_off": 0
16+
"hue": 0,
17+
"mode": "normal",
18+
"on_off": 1,
19+
"saturation": 0
2220
}
2321
},
2422
"system": {
2523
"get_sysinfo": {
2624
"active_mode": "none",
27-
"alias": "Fil",
25+
"alias": "Gold fil",
2826
"ctrl_protocols": {
2927
"name": "Linkie",
3028
"version": "1.0"
@@ -42,14 +40,12 @@
4240
"is_variable_color_temp": 0,
4341
"latitude_i": 0,
4442
"light_state": {
45-
"dft_on_state": {
46-
"brightness": 69,
47-
"color_temp": 2000,
48-
"hue": 0,
49-
"mode": "normal",
50-
"saturation": 0
51-
},
52-
"on_off": 0
43+
"brightness": 100,
44+
"color_temp": 2000,
45+
"hue": 0,
46+
"mode": "normal",
47+
"on_off": 1,
48+
"saturation": 0
5349
},
5450
"longitude_i": 0,
5551
"mic_mac": "000000000000",
@@ -86,7 +82,7 @@
8682
"saturation": 0
8783
}
8884
],
89-
"rssi": -55,
85+
"rssi": -41,
9086
"status": "new",
9187
"sw_ver": "1.1.13 Build 210524 Rel.082619"
9288
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"system": {
3+
"get_sysinfo": {
4+
"active_mode": "none",
5+
"alias": "Uk plug",
6+
"dev_name": "Smart Wi-Fi Plug",
7+
"deviceId": "0000000000000000000000000000000000000000",
8+
"err_code": 0,
9+
"feature": "TIM",
10+
"hwId": "00000000000000000000000000000000",
11+
"hw_ver": "1.0",
12+
"icon_hash": "",
13+
"latitude_i": 0,
14+
"led_off": 0,
15+
"longitude_i": 0,
16+
"mac": "00:00:00:00:00:00",
17+
"mic_type": "IOT.SMARTPLUGSWITCH",
18+
"model": "KP105(UK)",
19+
"next_action": {
20+
"type": -1
21+
},
22+
"ntc_state": 0,
23+
"obd_src": "tplink",
24+
"oemId": "00000000000000000000000000000000",
25+
"on_time": 0,
26+
"relay_state": 0,
27+
"rssi": -48,
28+
"status": "new",
29+
"sw_ver": "1.0.7 Build 210506 Rel.153510",
30+
"updating": 0
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)
0