2021-04-20 07:54:02 DEBUG (MainThread) [teslajsonpy.connection] Connecting with existing access token 2021-04-20 07:54:02 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/vehicles None 2021-04-20 07:54:15 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response": [{"id": 186288594056, "vehicle_id": ***REMOVED***, "vin": "***REMOVED****", "display_name": "Kate's Tesla", "option_codes": "AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0", "color": null, "access_type": "MASQUERADE", "tokens": ["89470a30d43beb18", "8c676346361e0007"], "state": "asleep", "in_service": false, "id_s": "186288594056", "calendar_enabled": true, "api_version": 15, "backseat_token": null, "backseat_token_updated_at": null, "command_signing": "off"}], "count": 1} 2021-04-20 07:54:15 DEBUG (MainThread) [homeassistant.components.tesla] Connected to the Tesla API 2021-04-20 07:54:15 DEBUG (MainThread) [homeassistant.components.tesla] Finished fetching tesla data in 0.000 seconds 2021-04-20 07:54:15 DEBUG (MainThread) [homeassistant.components.tesla] Loading sensor 2021-04-20 07:54:15 DEBUG (MainThread) [homeassistant.components.tesla] Loading lock 2021-04-20 07:54:15 DEBUG (MainThread) [homeassistant.components.tesla] Loading climate 2021-04-20 07:54:15 DEBUG (MainThread) [homeassistant.components.tesla] Loading binary_sensor 2021-04-20 07:54:15 DEBUG (MainThread) [homeassistant.components.tesla] Loading device_tracker 2021-04-20 07:54:15 DEBUG (MainThread) [homeassistant.components.tesla] Loading switch 2021-04-20 07:54:15 DEBUG (MainThread) [homeassistant.components.tesla] Finished fetching tesla data in 0.000 seconds 2021-04-20 07:55:15 DEBUG (MainThread) [homeassistant.components.tesla] Finished fetching tesla data in 0.000 seconds 2021-04-20 07:56:15 DEBUG (MainThread) [teslajsonpy.connection] Oauth expiration detected 2021-04-20 07:56:15 DEBUG (MainThread) [teslajsonpy.connection] Getting sso auth code using credentials 2021-04-20 07:56:15 DEBUG (MainThread) [teslajsonpy.connection] Getting sso auth token from https://auth.tesla.com/oauth2/v3/authorize?client_id=ownerapi&code_challenge=N2VlNTk2OGIxNjM0MjVmODc3ZTUzMDhkZDI4ZDUyNjdlNzc4MmIyZWM4MWFhOTUxN2FhMWVjYWRkYTQ0ZjkyMA%3D%3D&code_challenge_method=S256&redirect_uri=https://auth.tesla.com/void/callback&response_type=code&scope=openid+email+offline_access&state=2xF5iMo03YOkLobWDzlMmHad7sO3hwV-N95Dj7_RjYrwVA8VtibNy8pZwwVXRMv0XJ9nJUE6qR_2aZ7hrjR-Zw 2021-04-20 07:56:15 DEBUG (MainThread) [teslajsonpy.connection] POST: https://auth.tesla.com/oauth2/v3/authorize?client_id=ownerapi&code_challenge=N2VlNTk2OGIxNjM0MjVmODc3ZTUzMDhkZDI4ZDUyNjdlNzc4MmIyZWM4MWFhOTUxN2FhMWVjYWRkYTQ0ZjkyMA%3D%3D&code_challenge_method=S256&redirect_uri=https://auth.tesla.com/void/callback&response_type=code&scope=openid+email+offline_access&state=2xF5iMo03YOkLobWDzlMmHad7sO3hwV-N95Dj7_RjYrwVA8VtibNy8pZwwVXRMv0XJ9nJUE6qR_2aZ7hrjR-Zw with returned 403:Forbidden with response 2021-04-20 07:56:15 ERROR (MainThread) [homeassistant.components.tesla] Unexpected error fetching tesla data: tuple index out of range Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 173, in _async_refresh self.data = await self._async_update_data() File "/usr/src/homeassistant/homeassistant/components/tesla/__init__.py", line 273, in _async_update_data return await self.controller.update() File "/usr/local/lib/python3.8/site-packages/teslajsonpy/controller.py", line 661, in update cars = await self.get_vehicles() File "/usr/local/lib/python3.8/site-packages/backoff/_async.py", line 133, in retry ret = await target(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/teslajsonpy/controller.py", line 357, in get_vehicles return (await self.__connection.get("vehicles"))["response"] File "/usr/local/lib/python3.8/site-packages/teslajsonpy/connection.py", line 78, in get return await self.post(command, "get", None) File "/usr/local/lib/python3.8/site-packages/teslajsonpy/connection.py", line 96, in post self.code = await self.get_authorization_code( File "/usr/local/lib/python3.8/site-packages/teslajsonpy/connection.py", line 372, in get_authorization_code code_url = URL(resp.history[-1].url) IndexError: tuple index out of range 2021-04-20 07:56:15 DEBUG (MainThread) [homeassistant.components.tesla] Finished fetching tesla data in 0.189 seconds 2021-04-20 07:57:15 DEBUG (MainThread) [teslajsonpy.connection] Oauth expiration detected 2021-04-20 07:57:15 DEBUG (MainThread) [teslajsonpy.connection] Getting sso auth code using credentials 2021-04-20 07:57:15 DEBUG (MainThread) [teslajsonpy.connection] Getting sso auth token from https://auth.tesla.com/oauth2/v3/authorize?client_id=ownerapi&code_challenge=N2VlNTk2OGIxNjM0MjVmODc3ZTUzMDhkZDI4ZDUyNjdlNzc4MmIyZWM4MWFhOTUxN2FhMWVjYWRkYTQ0ZjkyMA%3D%3D&code_challenge_method=S256&redirect_uri=https://auth.tesla.com/void/callback&response_type=code&scope=openid+email+offline_access&state=Lx32gq2eZZ42QGcVqLmevcMtzkxoI1oyv1Z8RNAL7jv8Y-qi6Apu9tPlDql5v0jDUgt8VfVuiWa9JWc3PfBokw 2021-04-20 07:57:15 DEBUG (MainThread) [teslajsonpy.connection] POST: https://auth.tesla.com/oauth2/v3/authorize?client_id=ownerapi&code_challenge=N2VlNTk2OGIxNjM0MjVmODc3ZTUzMDhkZDI4ZDUyNjdlNzc4MmIyZWM4MWFhOTUxN2FhMWVjYWRkYTQ0ZjkyMA%3D%3D&code_challenge_method=S256&redirect_uri=https://auth.tesla.com/void/callback&response_type=code&scope=openid+email+offline_access&state=Lx32gq2eZZ42QGcVqLmevcMtzkxoI1oyv1Z8RNAL7jv8Y-qi6Apu9tPlDql5v0jDUgt8VfVuiWa9JWc3PfBokw with returned 403:Forbidden with response 2021-04-20 07:57:15 ERROR (MainThread) [homeassistant.components.tesla] Unexpected error fetching tesla data: tuple index out of range Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 173, in _async_refresh self.data = await self._async_update_data() File "/usr/src/homeassistant/homeassistant/components/tesla/__init__.py", line 273, in _async_update_data return await self.controller.update() File "/usr/local/lib/python3.8/site-packages/teslajsonpy/controller.py", line 661, in update cars = await self.get_vehicles() File "/usr/local/lib/python3.8/site-packages/backoff/_async.py", line 133, in retry ret = await target(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/teslajsonpy/controller.py", line 357, in get_vehicles return (await self.__connection.get("vehicles"))["response"] File "/usr/local/lib/python3.8/site-packages/teslajsonpy/connection.py", line 78, in get return await self.post(command, "get", None) File "/usr/local/lib/python3.8/site-packages/teslajsonpy/connection.py", line 96, in post self.code = await self.get_authorization_code( File "/usr/local/lib/python3.8/site-packages/teslajsonpy/connection.py", line 372, in get_authorization_code code_url = URL(resp.history[-1].url) IndexError: tuple index out of range 2021-04-20 07:57:15 DEBUG (MainThread) [homeassistant.components.tesla] Finished fetching tesla data in 0.184 seconds