Skip to content

Commit 6ba7c4a

Browse files
authored
Convert fixtures to use unix newlines (#1177)
Also, add a .gitattributes entry to let git handle this automatically for json files
1 parent 8a17752 commit 6ba7c4a

File tree

5 files changed

+1419
-1418
lines changed

5 files changed

+1419
-1418
lines changed

.gitattributes

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

0 commit comments

Comments
 (0)