Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/config_entries.py", line 217, in async_setup

hass, self


 "/usr/src/homeassistant/homeassistant/components/tesla/__init__.py", line 141, in async_setup_entry

CONF_WAKE_ON_START, DEFAULT_WAKE_ON_START


 "/usr/local/lib/python3.7/site-packages/teslajsonpy/controller.py", line 266, in connect

cars = await self.get_vehicles()


 "/usr/local/lib/python3.7/site-packages/backoff/_async.py", line 133, in retry

ret = await target(*args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/teslajsonpy/controller.py", line 351, in get_vehicles

return (await self.__connection.get("vehicles"))["response"]


 "/usr/local/lib/python3.7/site-packages/teslajsonpy/connection.py", line 98, in get

return await self.post(command, "get", None)


 "/usr/local/lib/python3.7/site-packages/teslajsonpy/connection.py", line 115, in post

f"{self.api}{command}", method=method, headers=self.head, data=data


 "/usr/local/lib/python3.7/site-packages/teslajsonpy/connection.py", line 157, in __open

if data.get("error") == "invalid_token":
AttributeError: 'NoneType' object has no attribute 'get'

Traceback (most recent call last):


 "C:\Users\Daniel\Anaconda3\lib\site-packages\spyder\plugins\editor.py", line 1481, in refresh_save_all_action

for finfo in editorstack.data)
AttributeError: 'NoneType' object has no attribute 'data'
