python-kasa 0.6.0.dev2__py3-none-any.whl → 0.6.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. kasa/__init__.py +2 -2
  2. kasa/aestransport.py +154 -101
  3. kasa/cli.py +42 -23
  4. kasa/device_factory.py +4 -3
  5. kasa/deviceconfig.py +19 -10
  6. kasa/discover.py +28 -11
  7. kasa/exceptions.py +15 -1
  8. kasa/httpclient.py +113 -0
  9. kasa/iotprotocol.py +30 -26
  10. kasa/json.py +5 -1
  11. kasa/klaptransport.py +60 -75
  12. kasa/modules/emeter.py +1 -1
  13. kasa/protocol.py +61 -16
  14. kasa/smartbulb.py +2 -2
  15. kasa/smartdevice.py +11 -7
  16. kasa/smartdimmer.py +2 -2
  17. kasa/smartlightstrip.py +2 -2
  18. kasa/smartplug.py +2 -2
  19. kasa/smartprotocol.py +16 -38
  20. kasa/smartstrip.py +2 -2
  21. kasa/tapo/tapodevice.py +19 -4
  22. kasa/tapo/tapoplug.py +2 -2
  23. kasa/tests/conftest.py +24 -8
  24. kasa/tests/fixtures/HS100(UK)_1.0_1.2.6.json +28 -0
  25. kasa/tests/fixtures/HS100(UK)_4.1_1.1.0.json +3 -3
  26. kasa/tests/fixtures/HS110(EU)_1.0_1.2.5.json +11 -23
  27. kasa/tests/fixtures/HS110(EU)_4.0_1.0.4.json +40 -0
  28. kasa/tests/fixtures/HS300(US)_2.0_1.0.12.json +90 -0
  29. kasa/tests/fixtures/KL125(US)_4.0_1.0.5.json +93 -0
  30. kasa/tests/fixtures/KL130(EU)_1.0_1.8.8.json +15 -15
  31. kasa/tests/fixtures/KL430(US)_2.0_1.0.11.json +59 -0
  32. kasa/tests/fixtures/KP105(UK)_1.0_1.0.5.json +36 -0
  33. kasa/tests/fixtures/KP105(UK)_1.0_1.0.7.json +4 -4
  34. kasa/tests/fixtures/KP115(EU)_1.0_1.0.16.json +9 -9
  35. kasa/tests/fixtures/KP115(US)_1.0_1.0.21.json +42 -0
  36. kasa/tests/fixtures/KP303(UK)_1.0_1.0.3.json +9 -25
  37. kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +414 -0
  38. kasa/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +263 -0
  39. kasa/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +295 -0
  40. kasa/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +267 -0
  41. kasa/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +19 -19
  42. kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +12 -12
  43. kasa/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +439 -0
  44. kasa/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +10 -10
  45. kasa/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +428 -0
  46. kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +98 -20
  47. kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +390 -0
  48. kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +397 -0
  49. kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +415 -0
  50. kasa/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +429 -0
  51. kasa/tests/fixtures/smart/P100_1.0.0_1.3.7.json +197 -0
  52. kasa/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +28 -19
  53. kasa/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +31 -31
  54. kasa/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +11 -11
  55. kasa/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +317 -0
  56. kasa/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +317 -0
  57. kasa/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +309 -0
  58. kasa/tests/newfakes.py +3 -0
  59. kasa/tests/test_aestransport.py +110 -22
  60. kasa/tests/test_cli.py +49 -2
  61. kasa/tests/test_device_factory.py +6 -4
  62. kasa/tests/test_deviceconfig.py +24 -9
  63. kasa/tests/test_discovery.py +126 -9
  64. kasa/tests/test_httpclient.py +100 -0
  65. kasa/tests/test_klapprotocol.py +70 -23
  66. kasa/tests/test_protocol.py +76 -2
  67. kasa/tests/test_smartprotocol.py +0 -1
  68. {python_kasa-0.6.0.dev2.dist-info → python_kasa-0.6.1.dist-info}/METADATA +37 -15
  69. {python_kasa-0.6.0.dev2.dist-info → python_kasa-0.6.1.dist-info}/RECORD +72 -49
  70. {python_kasa-0.6.0.dev2.dist-info → python_kasa-0.6.1.dist-info}/LICENSE +0 -0
  71. {python_kasa-0.6.0.dev2.dist-info → python_kasa-0.6.1.dist-info}/WHEEL +0 -0
  72. {python_kasa-0.6.0.dev2.dist-info → python_kasa-0.6.1.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,317 @@
1
+ {
2
+ "component_nego": {
3
+ "component_list": [
4
+ {
5
+ "id": "device",
6
+ "ver_code": 2
7
+ },
8
+ {
9
+ "id": "firmware",
10
+ "ver_code": 2
11
+ },
12
+ {
13
+ "id": "quick_setup",
14
+ "ver_code": 3
15
+ },
16
+ {
17
+ "id": "inherit",
18
+ "ver_code": 1
19
+ },
20
+ {
21
+ "id": "time",
22
+ "ver_code": 1
23
+ },
24
+ {
25
+ "id": "wireless",
26
+ "ver_code": 1
27
+ },
28
+ {
29
+ "id": "schedule",
30
+ "ver_code": 2
31
+ },
32
+ {
33
+ "id": "countdown",
34
+ "ver_code": 2
35
+ },
36
+ {
37
+ "id": "antitheft",
38
+ "ver_code": 1
39
+ },
40
+ {
41
+ "id": "account",
42
+ "ver_code": 1
43
+ },
44
+ {
45
+ "id": "synchronize",
46
+ "ver_code": 1
47
+ },
48
+ {
49
+ "id": "sunrise_sunset",
50
+ "ver_code": 1
51
+ },
52
+ {
53
+ "id": "led",
54
+ "ver_code": 1
55
+ },
56
+ {
57
+ "id": "cloud_connect",
58
+ "ver_code": 1
59
+ },
60
+ {
61
+ "id": "iot_cloud",
62
+ "ver_code": 1
63
+ },
64
+ {
65
+ "id": "device_local_time",
66
+ "ver_code": 1
67
+ },
68
+ {
69
+ "id": "default_states",
70
+ "ver_code": 1
71
+ },
72
+ {
73
+ "id": "brightness",
74
+ "ver_code": 1
75
+ },
76
+ {
77
+ "id": "preset",
78
+ "ver_code": 1
79
+ },
80
+ {
81
+ "id": "on_off_gradually",
82
+ "ver_code": 2
83
+ },
84
+ {
85
+ "id": "dimmer_calibration",
86
+ "ver_code": 1
87
+ },
88
+ {
89
+ "id": "overheat_protection",
90
+ "ver_code": 1
91
+ }
92
+ ]
93
+ },
94
+ "discovery_result": {
95
+ "device_id": "00000000000000000000000000000000",
96
+ "device_model": "S500D(US)",
97
+ "device_type": "SMART.TAPOSWITCH",
98
+ "factory_default": false,
99
+ "ip": "127.0.0.123",
100
+ "is_support_iot_cloud": true,
101
+ "mac": "48-22-54-00-00-00",
102
+ "mgt_encrypt_schm": {
103
+ "encrypt_type": "AES",
104
+ "http_port": 80,
105
+ "is_support_https": false,
106
+ "lv": 2
107
+ },
108
+ "obd_src": "tplink",
109
+ "owner": "00000000000000000000000000000000"
110
+ },
111
+ "get_antitheft_rules": {
112
+ "antitheft_rule_max_count": 1,
113
+ "enable": false,
114
+ "rule_list": []
115
+ },
116
+ "get_auto_update_info": {
117
+ "enable": false,
118
+ "random_range": 120,
119
+ "time": 180
120
+ },
121
+ "get_connect_cloud_state": {
122
+ "status": 0
123
+ },
124
+ "get_countdown_rules": {
125
+ "countdown_rule_max_count": 1,
126
+ "enable": false,
127
+ "rule_list": []
128
+ },
129
+ "get_device_info": {
130
+ "avatar": "switch_s500d",
131
+ "brightness": 46,
132
+ "default_states": {
133
+ "type": "last_states"
134
+ },
135
+ "device_id": "0000000000000000000000000000000000000000",
136
+ "device_on": false,
137
+ "fw_id": "00000000000000000000000000000000",
138
+ "fw_ver": "1.0.5 Build 221014 Rel.112003",
139
+ "has_set_location_info": true,
140
+ "hw_id": "00000000000000000000000000000000",
141
+ "hw_ver": "1.0",
142
+ "ip": "127.0.0.123",
143
+ "lang": "en_US",
144
+ "latitude": 0,
145
+ "longitude": 0,
146
+ "mac": "48-22-54-00-00-00",
147
+ "model": "S500D",
148
+ "nickname": "I01BU0tFRF9OQU1FIw==",
149
+ "oem_id": "00000000000000000000000000000000",
150
+ "on_time": 0,
151
+ "overheat_status": "normal",
152
+ "region": "Pacific/Honolulu",
153
+ "rssi": -31,
154
+ "signal_level": 3,
155
+ "specs": "",
156
+ "ssid": "I01BU0tFRF9TU0lEIw==",
157
+ "time_diff": -600,
158
+ "type": "SMART.TAPOSWITCH"
159
+ },
160
+ "get_device_time": {
161
+ "region": "Pacific/Honolulu",
162
+ "time_diff": -600,
163
+ "timestamp": 1706136515
164
+ },
165
+ "get_device_usage": {
166
+ "time_usage": {
167
+ "past30": 0,
168
+ "past7": 0,
169
+ "today": 0
170
+ }
171
+ },
172
+ "get_fw_download_state": {
173
+ "auto_upgrade": false,
174
+ "download_progress": 0,
175
+ "reboot_time": 5,
176
+ "status": 0,
177
+ "upgrade_time": 5
178
+ },
179
+ "get_inherit_info": null,
180
+ "get_latest_fw": {
181
+ "fw_size": 786432,
182
+ "fw_ver": "1.1.0 Build 230906 Rel.141935",
183
+ "hw_id": "00000000000000000000000000000000",
184
+ "need_to_upgrade": true,
185
+ "oem_id": "00000000000000000000000000000000",
186
+ "release_date": "2023-10-07",
187
+ "release_note": "Modifications and Bug Fixes:\n1. Enhanced stability and performance.\n2. Enhanced local communication security.",
188
+ "type": 2
189
+ },
190
+ "get_led_info": {
191
+ "led_rule": "always",
192
+ "led_status": true,
193
+ "night_mode": {
194
+ "end_time": 426,
195
+ "night_mode_type": "sunrise_sunset",
196
+ "start_time": 1093,
197
+ "sunrise_offset": 0,
198
+ "sunset_offset": 0
199
+ }
200
+ },
201
+ "get_next_event": {},
202
+ "get_on_off_gradually_info": {
203
+ "off_state": {
204
+ "duration": 2,
205
+ "enable": true
206
+ },
207
+ "on_state": {
208
+ "duration": 3,
209
+ "enable": true
210
+ }
211
+ },
212
+ "get_preset_rules": {
213
+ "brightness": [
214
+ 100,
215
+ 75,
216
+ 50,
217
+ 25,
218
+ 1
219
+ ]
220
+ },
221
+ "get_schedule_rules": {
222
+ "enable": false,
223
+ "rule_list": [],
224
+ "schedule_rule_max_count": 32,
225
+ "start_index": 0,
226
+ "sum": 0
227
+ },
228
+ "get_wireless_scan_info": {
229
+ "ap_list": [
230
+ {
231
+ "bssid": "000000000000",
232
+ "channel": 0,
233
+ "cipher_type": 2,
234
+ "key_type": "wpa_psk",
235
+ "signal_level": 3,
236
+ "ssid": "I01BU0tFRF9TU0lEIw=="
237
+ },
238
+ {
239
+ "bssid": "000000000000",
240
+ "channel": 0,
241
+ "cipher_type": 2,
242
+ "key_type": "wpa_psk",
243
+ "signal_level": 2,
244
+ "ssid": "I01BU0tFRF9TU0lEIw=="
245
+ },
246
+ {
247
+ "bssid": "000000000000",
248
+ "channel": 0,
249
+ "cipher_type": 2,
250
+ "key_type": "wpa_psk",
251
+ "signal_level": 2,
252
+ "ssid": "I01BU0tFRF9TU0lEIw=="
253
+ },
254
+ {
255
+ "bssid": "000000000000",
256
+ "channel": 0,
257
+ "cipher_type": 2,
258
+ "key_type": "wpa_psk",
259
+ "signal_level": 1,
260
+ "ssid": "I01BU0tFRF9TU0lEIw=="
261
+ },
262
+ {
263
+ "bssid": "000000000000",
264
+ "channel": 0,
265
+ "cipher_type": 2,
266
+ "key_type": "wpa_psk",
267
+ "signal_level": 1,
268
+ "ssid": "I01BU0tFRF9TU0lEIw=="
269
+ },
270
+ {
271
+ "bssid": "000000000000",
272
+ "channel": 0,
273
+ "cipher_type": 2,
274
+ "key_type": "wpa_psk",
275
+ "signal_level": 1,
276
+ "ssid": "I01BU0tFRF9TU0lEIw=="
277
+ },
278
+ {
279
+ "bssid": "000000000000",
280
+ "channel": 0,
281
+ "cipher_type": 2,
282
+ "key_type": "wpa_psk",
283
+ "signal_level": 1,
284
+ "ssid": "I01BU0tFRF9TU0lEIw=="
285
+ }
286
+ ],
287
+ "wep_supported": false
288
+ },
289
+ "qs_component_nego": {
290
+ "component_list": [
291
+ {
292
+ "id": "quick_setup",
293
+ "ver_code": 3
294
+ },
295
+ {
296
+ "id": "sunrise_sunset",
297
+ "ver_code": 1
298
+ },
299
+ {
300
+ "id": "iot_cloud",
301
+ "ver_code": 1
302
+ },
303
+ {
304
+ "id": "inherit",
305
+ "ver_code": 1
306
+ },
307
+ {
308
+ "id": "firmware",
309
+ "ver_code": 2
310
+ }
311
+ ],
312
+ "extra_info": {
313
+ "device_model": "S500D",
314
+ "device_type": "SMART.TAPOSWITCH"
315
+ }
316
+ }
317
+ }
@@ -0,0 +1,309 @@
1
+ {
2
+ "component_nego": {
3
+ "component_list": [
4
+ {
5
+ "id": "device",
6
+ "ver_code": 2
7
+ },
8
+ {
9
+ "id": "firmware",
10
+ "ver_code": 2
11
+ },
12
+ {
13
+ "id": "quick_setup",
14
+ "ver_code": 3
15
+ },
16
+ {
17
+ "id": "time",
18
+ "ver_code": 1
19
+ },
20
+ {
21
+ "id": "wireless",
22
+ "ver_code": 1
23
+ },
24
+ {
25
+ "id": "schedule",
26
+ "ver_code": 2
27
+ },
28
+ {
29
+ "id": "countdown",
30
+ "ver_code": 2
31
+ },
32
+ {
33
+ "id": "antitheft",
34
+ "ver_code": 1
35
+ },
36
+ {
37
+ "id": "account",
38
+ "ver_code": 1
39
+ },
40
+ {
41
+ "id": "synchronize",
42
+ "ver_code": 1
43
+ },
44
+ {
45
+ "id": "sunrise_sunset",
46
+ "ver_code": 1
47
+ },
48
+ {
49
+ "id": "led",
50
+ "ver_code": 1
51
+ },
52
+ {
53
+ "id": "cloud_connect",
54
+ "ver_code": 1
55
+ },
56
+ {
57
+ "id": "iot_cloud",
58
+ "ver_code": 1
59
+ },
60
+ {
61
+ "id": "device_local_time",
62
+ "ver_code": 1
63
+ },
64
+ {
65
+ "id": "default_states",
66
+ "ver_code": 1
67
+ },
68
+ {
69
+ "id": "auto_off",
70
+ "ver_code": 2
71
+ },
72
+ {
73
+ "id": "matter",
74
+ "ver_code": 1
75
+ },
76
+ {
77
+ "id": "delay_action",
78
+ "ver_code": 1
79
+ }
80
+ ]
81
+ },
82
+ "discovery_result": {
83
+ "device_id": "00000000000000000000000000000000",
84
+ "device_model": "S505(US)",
85
+ "device_type": "SMART.TAPOSWITCH",
86
+ "factory_default": false,
87
+ "ip": "127.0.0.123",
88
+ "is_support_iot_cloud": true,
89
+ "mac": "3C-52-A1-00-00-00",
90
+ "mgt_encrypt_schm": {
91
+ "encrypt_type": "AES",
92
+ "http_port": 80,
93
+ "is_support_https": false,
94
+ "lv": 2
95
+ },
96
+ "obd_src": "tplink",
97
+ "owner": "00000000000000000000000000000000"
98
+ },
99
+ "get_antitheft_rules": {
100
+ "antitheft_rule_max_count": 1,
101
+ "enable": false,
102
+ "rule_list": []
103
+ },
104
+ "get_auto_off_config": {
105
+ "delay_min": 120,
106
+ "enable": false
107
+ },
108
+ "get_auto_update_info": {
109
+ "enable": false,
110
+ "random_range": 120,
111
+ "time": 180
112
+ },
113
+ "get_connect_cloud_state": {
114
+ "status": 0
115
+ },
116
+ "get_countdown_rules": {
117
+ "countdown_rule_max_count": 1,
118
+ "enable": false,
119
+ "rule_list": []
120
+ },
121
+ "get_device_info": {
122
+ "auto_off_remain_time": 0,
123
+ "auto_off_status": "off",
124
+ "avatar": "switch_s500",
125
+ "default_states": {
126
+ "state": {
127
+ "on": false
128
+ },
129
+ "type": "custom"
130
+ },
131
+ "device_id": "0000000000000000000000000000000000000000",
132
+ "device_on": false,
133
+ "fw_id": "00000000000000000000000000000000",
134
+ "fw_ver": "1.0.2 Build 230313 Rel.101023",
135
+ "has_set_location_info": true,
136
+ "hw_id": "00000000000000000000000000000000",
137
+ "hw_ver": "1.0",
138
+ "ip": "127.0.0.123",
139
+ "lang": "en_US",
140
+ "latitude": 0,
141
+ "longitude": 0,
142
+ "mac": "3C-52-A1-00-00-00",
143
+ "model": "S505",
144
+ "nickname": "I01BU0tFRF9OQU1FIw==",
145
+ "oem_id": "00000000000000000000000000000000",
146
+ "on_time": 0,
147
+ "overheated": false,
148
+ "region": "Pacific/Honolulu",
149
+ "rssi": -37,
150
+ "signal_level": 3,
151
+ "specs": "",
152
+ "ssid": "I01BU0tFRF9TU0lEIw==",
153
+ "time_diff": -600,
154
+ "type": "SMART.TAPOSWITCH"
155
+ },
156
+ "get_device_time": {
157
+ "region": "Pacific/Honolulu",
158
+ "time_diff": -600,
159
+ "timestamp": 1706137970
160
+ },
161
+ "get_device_usage": {
162
+ "time_usage": {
163
+ "past30": 0,
164
+ "past7": 0,
165
+ "today": 0
166
+ }
167
+ },
168
+ "get_fw_download_state": {
169
+ "auto_upgrade": false,
170
+ "download_progress": 0,
171
+ "reboot_time": 5,
172
+ "status": 0,
173
+ "upgrade_time": 5
174
+ },
175
+ "get_latest_fw": {
176
+ "fw_size": 786432,
177
+ "fw_ver": "1.1.0 Build 231024 Rel.201030",
178
+ "hw_id": "00000000000000000000000000000000",
179
+ "need_to_upgrade": true,
180
+ "oem_id": "00000000000000000000000000000000",
181
+ "release_date": "2023-11-24",
182
+ "release_note": "Modifications and Bug Fixes:\n1. Enhanced stability and performance.\n2. Enhanced local communication security.\n3. Fixed some minor bugs.",
183
+ "type": 2
184
+ },
185
+ "get_led_info": {
186
+ "led_rule": "always",
187
+ "led_status": true,
188
+ "night_mode": {
189
+ "end_time": 426,
190
+ "night_mode_type": "sunrise_sunset",
191
+ "start_time": 1093,
192
+ "sunrise_offset": 0,
193
+ "sunset_offset": 0
194
+ }
195
+ },
196
+ "get_next_event": {},
197
+ "get_schedule_rules": {
198
+ "enable": false,
199
+ "rule_list": [],
200
+ "schedule_rule_max_count": 32,
201
+ "start_index": 0,
202
+ "sum": 0
203
+ },
204
+ "get_wireless_scan_info": {
205
+ "ap_list": [
206
+ {
207
+ "bssid": "000000000000",
208
+ "channel": 0,
209
+ "cipher_type": 2,
210
+ "key_type": "wpa_psk",
211
+ "signal_level": 3,
212
+ "ssid": "I01BU0tFRF9TU0lEIw=="
213
+ },
214
+ {
215
+ "bssid": "000000000000",
216
+ "channel": 0,
217
+ "cipher_type": 2,
218
+ "key_type": "wpa_psk",
219
+ "signal_level": 1,
220
+ "ssid": "I01BU0tFRF9TU0lEIw=="
221
+ },
222
+ {
223
+ "bssid": "000000000000",
224
+ "channel": 0,
225
+ "cipher_type": 2,
226
+ "key_type": "wpa_psk",
227
+ "signal_level": 2,
228
+ "ssid": "I01BU0tFRF9TU0lEIw=="
229
+ },
230
+ {
231
+ "bssid": "000000000000",
232
+ "channel": 0,
233
+ "cipher_type": 2,
234
+ "key_type": "wpa_psk",
235
+ "signal_level": 2,
236
+ "ssid": "I01BU0tFRF9TU0lEIw=="
237
+ },
238
+ {
239
+ "bssid": "000000000000",
240
+ "channel": 0,
241
+ "cipher_type": 2,
242
+ "key_type": "wpa_psk",
243
+ "signal_level": 1,
244
+ "ssid": "I01BU0tFRF9TU0lEIw=="
245
+ },
246
+ {
247
+ "bssid": "000000000000",
248
+ "channel": 0,
249
+ "cipher_type": 2,
250
+ "key_type": "wpa_psk",
251
+ "signal_level": 1,
252
+ "ssid": "I01BU0tFRF9TU0lEIw=="
253
+ },
254
+ {
255
+ "bssid": "000000000000",
256
+ "channel": 0,
257
+ "cipher_type": 2,
258
+ "key_type": "wpa_psk",
259
+ "signal_level": 1,
260
+ "ssid": "I01BU0tFRF9TU0lEIw=="
261
+ },
262
+ {
263
+ "bssid": "000000000000",
264
+ "channel": 0,
265
+ "cipher_type": 2,
266
+ "key_type": "wpa_psk",
267
+ "signal_level": 1,
268
+ "ssid": "I01BU0tFRF9TU0lEIw=="
269
+ }
270
+ ],
271
+ "wep_supported": false
272
+ },
273
+ "qs_component_nego": {
274
+ "component_list": [
275
+ {
276
+ "id": "quick_setup",
277
+ "ver_code": 3
278
+ },
279
+ {
280
+ "id": "sunrise_sunset",
281
+ "ver_code": 1
282
+ },
283
+ {
284
+ "id": "ble_whole_setup",
285
+ "ver_code": 1
286
+ },
287
+ {
288
+ "id": "matter",
289
+ "ver_code": 1
290
+ },
291
+ {
292
+ "id": "iot_cloud",
293
+ "ver_code": 1
294
+ },
295
+ {
296
+ "id": "inherit",
297
+ "ver_code": 1
298
+ },
299
+ {
300
+ "id": "firmware",
301
+ "ver_code": 2
302
+ }
303
+ ],
304
+ "extra_info": {
305
+ "device_model": "S505",
306
+ "device_type": "SMART.TAPOSWITCH"
307
+ }
308
+ }
309
+ }
kasa/tests/newfakes.py CHANGED
@@ -377,6 +377,9 @@ class FakeSmartTransport(BaseTransport):
377
377
  async def close(self) -> None:
378
378
  pass
379
379
 
380
+ async def reset(self) -> None:
381
+ pass
382
+
380
383
 
381
384
  class FakeTransportProtocol(TPLinkSmartHomeProtocol):
382
385
  def __init__(self, info):