@@ -131,7 +131,7 @@ async def request_syncmodule(blink, network):
131
131
132
132
133
133
@Throttle (seconds = MIN_THROTTLE_TIME )
134
- async def request_system_arm (blink , network ):
134
+ async def request_system_arm (blink , network , ** kwargs ):
135
135
"""
136
136
Arm system.
137
137
@@ -148,7 +148,7 @@ async def request_system_arm(blink, network):
148
148
149
149
150
150
@Throttle (seconds = MIN_THROTTLE_TIME )
151
- async def request_system_disarm (blink , network ):
151
+ async def request_system_disarm (blink , network , ** kwargs ):
152
152
"""
153
153
Disarm system.
154
154
@@ -177,14 +177,14 @@ async def request_command_status(blink, network, command_id):
177
177
178
178
179
179
@Throttle (seconds = MIN_THROTTLE_TIME )
180
- async def request_homescreen (blink ):
180
+ async def request_homescreen (blink , ** kwargs ):
181
181
"""Request homescreen info."""
182
182
url = f"{ blink .urls .base_url } /api/v3/accounts/{ blink .account_id } /homescreen"
183
183
return await http_get (blink , url )
184
184
185
185
186
186
@Throttle (seconds = MIN_THROTTLE_TIME )
187
- async def request_sync_events (blink , network ):
187
+ async def request_sync_events (blink , network , ** kwargs ):
188
188
"""
189
189
Request events from sync module.
190
190
@@ -196,7 +196,7 @@ async def request_sync_events(blink, network):
196
196
197
197
198
198
@Throttle (seconds = MIN_THROTTLE_TIME )
199
- async def request_new_image (blink , network , camera_id ):
199
+ async def request_new_image (blink , network , camera_id , ** kwargs ):
200
200
"""
201
201
Request to capture new thumbnail for camera.
202
202
@@ -211,7 +211,7 @@ async def request_new_image(blink, network, camera_id):
211
211
212
212
213
213
@Throttle (seconds = MIN_THROTTLE_TIME )
214
- async def request_new_video (blink , network , camera_id ):
214
+ async def request_new_video (blink , network , camera_id , ** kwargs ):
215
215
"""
216
216
Request to capture new video clip.
217
217
@@ -226,7 +226,7 @@ async def request_new_video(blink, network, camera_id):
226
226
227
227
228
228
@Throttle (seconds = MIN_THROTTLE_TIME )
229
- async def request_video_count (blink ):
229
+ async def request_video_count (blink , ** kwargs ):
230
230
"""Request total video count."""
231
231
url = f"{ blink .urls .base_url } /api/v2/videos/count"
232
232
return await http_get (blink , url )
@@ -304,14 +304,14 @@ async def request_camera_sensors(blink, network, camera_id):
304
304
305
305
:param blink: Blink instance.
306
306
:param network: Sync module network id.
307
- :param camera_id: Camera ID of camera to request sesnor info from.
307
+ :param camera_id: Camera ID of camera to request sensor info from.
308
308
"""
309
309
url = f"{ blink .urls .base_url } /network/{ network } /camera/{ camera_id } /signals"
310
310
return await http_get (blink , url )
311
311
312
312
313
313
@Throttle (seconds = MIN_THROTTLE_TIME )
314
- async def request_motion_detection_enable (blink , network , camera_id ):
314
+ async def request_motion_detection_enable (blink , network , camera_id , ** kwargs ):
315
315
"""
316
316
Enable motion detection for a camera.
317
317
@@ -326,8 +326,9 @@ async def request_motion_detection_enable(blink, network, camera_id):
326
326
327
327
328
328
@Throttle (seconds = MIN_THROTTLE_TIME )
329
- async def request_motion_detection_disable (blink , network , camera_id ):
330
- """Disable motion detection for a camera.
329
+ async def request_motion_detection_disable (blink , network , camera_id , ** kwargs ):
330
+ """
331
+ Disable motion detection for a camera.
331
332
332
333
:param blink: Blink instance.
333
334
:param network: Sync module network id.
@@ -340,7 +341,8 @@ async def request_motion_detection_disable(blink, network, camera_id):
340
341
341
342
342
343
async def request_local_storage_manifest (blink , network , sync_id ):
343
- """Update local manifest.
344
+ """
345
+ Update local manifest.
344
346
345
347
Request creation of an updated manifest of video clips stored in
346
348
sync module local storage.
@@ -360,7 +362,8 @@ async def request_local_storage_manifest(blink, network, sync_id):
360
362
361
363
362
364
async def get_local_storage_manifest (blink , network , sync_id , manifest_request_id ):
363
- """Request manifest of video clips stored in sync module local storage.
365
+ """
366
+ Request manifest of video clips stored in sync module local storage.
364
367
365
368
:param blink: Blink instance.
366
369
:param network: Sync module network id.
@@ -377,7 +380,8 @@ async def get_local_storage_manifest(blink, network, sync_id, manifest_request_i
377
380
378
381
379
382
async def request_local_storage_clip (blink , network , sync_id , manifest_id , clip_id ):
380
- """Prepare video clip stored in the sync module to be downloaded.
383
+ """
384
+ Prepare video clip stored in the sync module to be downloaded.
381
385
382
386
:param blink: Blink instance.
383
387
:param network: Sync module network id.
@@ -400,7 +404,8 @@ async def request_local_storage_clip(blink, network, sync_id, manifest_id, clip_
400
404
401
405
402
406
async def request_get_config (blink , network , camera_id , product_type = "owl" ):
403
- """Get camera configuration.
407
+ """
408
+ Get camera configuration.
404
409
405
410
:param blink: Blink instance.
406
411
:param network: Sync module network id.
@@ -427,7 +432,8 @@ async def request_get_config(blink, network, camera_id, product_type="owl"):
427
432
async def request_update_config (
428
433
blink , network , camera_id , product_type = "owl" , data = None
429
434
):
430
- """Update camera configuration.
435
+ """
436
+ Update camera configuration.
431
437
432
438
:param blink: Blink instance.
433
439
:param network: Sync module network id.
@@ -455,7 +461,8 @@ async def request_update_config(
455
461
async def http_get (
456
462
blink , url , stream = False , json = True , is_retry = False , timeout = TIMEOUT
457
463
):
458
- """Perform an http get request.
464
+ """
465
+ Perform an http get request.
459
466
460
467
:param url: URL to perform get request.
461
468
:param stream: Stream response? True/FALSE
@@ -474,9 +481,10 @@ async def http_get(
474
481
475
482
476
483
async def http_post (blink , url , is_retry = False , data = None , json = True , timeout = TIMEOUT ):
477
- """Perform an http post request.
484
+ """
485
+ Perform an http post request.
478
486
479
- :param url: URL to perfom post request.
487
+ :param url: URL to perform post request.
480
488
:param is_retry: Is this part of a re-auth attempt?
481
489
:param data: str body for post request
482
490
:param json: Return json response? TRUE/False
0 commit comments