fars-fede-fire / volvoaaos

Home Assistant custom component for Volvo AAOS vehicles
MIT License
8 stars 1 forks source link

Ability to add multiple cars #43

Open aleksisg opened 5 months ago

aleksisg commented 5 months ago

Checklist

Is your feature request related to a problem? Please describe.

If I add multiple cars that are connected to my account, only one actually gets added. The correct VINs are listed but if another is selected, it seems to overwrite the previously added vehicle.

Describe the solution you'd like

Allow multiple vehicles.

Describe alternatives you've considered

None

Additional context

None

fars-fede-fire commented 5 months ago

Thank you for creating an issue. (Unfortunately) I do only have 1 Volvo so I am not able to reproduce. You say when adding another car the first one disappear. Do you give it another name? Does the entities become unavailable or completely disappear?

aleksisg commented 5 months ago

The first remains in name but the entities disappear so you are left with two names - one is empty, the other has the 21 entities.

I've tried restarting and adding the other again. The same thing happens where both are listed but only the most recent to be added has the entities.

I've tried various different names, adding one then restarting before adding the other, adding both then restarting, but each time only the most recently added works.

fars-fede-fire commented 5 months ago

I have tried to reproduce the problem using demo cars, but the auth process is not the same but I actually get 2 entries though with errors because of scope limits... I do not think I can come close to figure out or solve the problem without an actual account with 2 vehicles attached...