Hi,
I have succesfully switched from Tesla custom integration to the official Tesla Fleet integration, everything working fine. But after a few time (days or maybe restart?), the integration says "failed to setup"
I could find this error in the log:
Error setting up entry xxxxxxx-xxxxxx-xxxxxx-xxxxxxxxxxxxxx for tesla_fleet Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/tesla_fleet/__init__.py", line 75, in async_setup_entry scopes: list[Scope] = [Scope(s) for s in token["scp"]] ~~~~~^^^ File "/usr/local/lib/python3.13/enum.py", line 726, in __call__ return cls.__new__(cls, value) ~~~~~~~~~~~^^^^^^^^^^^^ File "/usr/local/lib/python3.13/enum.py", line 1201, in __new__ raise ve_exc ValueError: 'email' is not a valid Scope
I have tried the debug but could not find more details on this issue.
It happened first a few weeks ago, to fix it, I removed the entries and re-configured the integration. This means all scripts and automations need to be updated to use the newly created entities.
But after a few days, I got the same problem.
Wondering if others have hit this problem, if I did something wrong or if I should fill a GH issue for this. I am using latest HA/HA os versions
Thank you