From d66560e8bb4e35a10ce2cdaed63da715a629b1d5 Mon Sep 17 00:00:00 2001 From: mastermc0 Date: Thu, 16 Apr 2020 21:56:01 +0100 Subject: [PATCH] Update api.py --- custom_components/badnest/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/badnest/api.py b/custom_components/badnest/api.py index ad87421..770bf28 100644 --- a/custom_components/badnest/api.py +++ b/custom_components/badnest/api.py @@ -193,7 +193,7 @@ class NestAPI(): 'Referer': 'https://home.nest.com/', 'cookie': f"cztoken={self._access_token}" } - r = self._session.get(url=f"{CAMERA_WEBAPI_BASE}/api/cameras.get_with_properties?uuid={camera}" + r = self._session.get(url=f"{CAMERA_WEBAPI_BASE}/api/cameras.get_with_properties?uuid="+camera , headers=headers) sensor_data = r.json()["items"][0] self.device_data[camera]['name'] = \