8000 Add fixture file for KL135 (#263) · allandaly/python-kasa@6b18c5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b18c5c

Browse files
authored
Add fixture file for KL135 (python-kasa#263)
* Create new fixture file for KL135 * Add KL135 to COLOR_BULBS and VARIABLE_TEMP lists
1 parent a468d52 commit 6b18c5c

File tree

2 files changed

+91
-2
lines changed

2 files changed

+91
-2
lines changed

kasa/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727

2828
LIGHT_STRIPS = {"KL400", "KL430"}
29-
VARIABLE_TEMP = {"LB120", "LB130", "KL120", "KL125", "KL130", "KL430"}
30-
COLOR_BULBS = {"LB130", "KL125", "KL130", *LIGHT_STRIPS}
29+
VARIABLE_TEMP = {"LB120", "LB130", "KL120", "KL125", "KL130", "KL135", "KL430"}
30+
COLOR_BULBS = {"LB130", "KL125", "KL130", "KL135", *LIGHT_STRIPS}
3131
BULBS = {
3232
"KL50",
3333
"KL60",
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"smartlife.iot.common.emeter": {
3+
"get_realtime": {
4+
"err_code": 0,
5+
"power_mw": 900,
6+
"total_wh": 0
7+
}
8+
},
9+
"smartlife.iot.smartbulb.lightingservice": {
10+
"get_light_state": {
11+
"brightness": 1,
12+
"color_temp": 0,
13+
"err_code": 0,
14+
"hue": 37,
15+
"mode": "normal",
16+
"on_off": 1,
17+
"saturation": 100
18+
}
19+
},
20+
"system": {
21+
"get_sysinfo": {
22+
"active_mode": "none",
23+
"alias": "KL135 Bulb",
24+
"ctrl_protocols": {
25+
"name": "Linkie",
26+
"version": "1.0"
27+
},
28+
"description": "Smart Wi-Fi LED Bulb with Color Changing",
29+
"dev_state": "normal",
30+
"deviceId": "0000000000000000000000000000000000000000",
31+
"disco_ver": "1.0",
32+
"err_code": 0,
33+
"hwId": "00000000000000000000000000000000",
34+
"hw_ver": "1.0",
35+
"is_color": 1,
36+
"is_dimmable": 1,
37+
"is_factory": false,
38+
"is_variable_color_temp": 1,
39+
"latitude_i": 0,
40+
"light_state": {
41+
"brightness": 1,
42+
"color_temp": 0,
43+
"hue": 37,
44+
"mode": "normal",
45+
"on_off": 1,
46+
"saturation": 100
47+
},
48+
"longitude_i": 0,
49+
"mic_mac": "000000000000",
50+
"mic_type": "IOT.SMARTBULB",
51+
"model": "KL135(US)",
52+
"obd_src": "tplink",
53+
"oemId": "00000000000000000000000000000000",
54+
"preferred_state": [
55+
{
56+
"brightness": 50,
57+
"color_temp": 2700,
58+
"hue": 0,
59+
"index": 0,
60+
"saturation": 0
61+
},
62+
{
63+
"brightness": 100,
64+
"color_temp": 0,
65+
"hue": 0,
66+
"index": 1,
67+
"saturation": 100
68+
},
69+
{
70+
"brightness": 100,
71+
"color_temp": 0,
72+
"hue": 120,
73+
"index": 2,
74+
"saturation": 100
75+
},
76+
{
77+
"brightness": 1,
78+
"color_temp": 0,
79+
"hue": 37,
80+
"index": 3,
81+
"saturation": 100
82+
}
83+
],
84+
"rssi": -69,
85+
"status": "new",
86+
"sw_ver": "1.0.6 Build 210330 Rel.173743"
87+
}
88+
}
89+
}

0 commit comments

Comments
 (0)
0