Connection issues with Tesla through HACS Tesla Custom Integration

I have issues with accessing my Tesla Model Y for the last week or so. I use the Tesla Custom Integration in HACS.

If I restart Home Assistant it gets disconnected from my Teslaand the old values are not preserved as before. In the log I get error:

ERROR (MainThread) [homeassistant.components.websocket_api.http.connection]

with the Traceback ending with:


When I try to press the button Force update I get a message with something like:
Failed to call service button unknown error

To get around the issue I need to go into the Tesla app, wake the car and then reload the integration in Home Assistant. But since I restart my Home Assistant instance every night by an automation, I loose connection to the car and charging automations which previously worked fine now fails since it has lost connection.