From 6f1b5b779d2254e52258e00ee1dd2ccf73285e61 Mon Sep 17 00:00:00 2001 From: mrlt8 <67088095+mrlt8@users.noreply.github.com> Date: Fri, 19 Apr 2024 07:55:18 -0700 Subject: [PATCH] access token --- app/wyzecam/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/wyzecam/api.py b/app/wyzecam/api.py index 754c4f36..4d452406 100644 --- a/app/wyzecam/api.py +++ b/app/wyzecam/api.py @@ -316,8 +316,7 @@ def get_cam_webrtc(auth_info: WyzeCredential, mac_id: str) -> dict: ui_headers = _headers() ui_headers["content-type"] = "application/json" - ui_headers["authorization"] = auth_info.access_token - + ui_headers["authorization"] = f"Bearer {auth_info.access_token}" resp = get( f"https://webrtc.api.wyze.com/signaling/device/{mac_id}?use_trickle=true", headers=ui_headers,