Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use only VIN as DeviceInfo.identifiers #5

Merged
merged 4 commits into from
Sep 30, 2023
Merged

Use only VIN as DeviceInfo.identifiers #5

merged 4 commits into from
Sep 30, 2023

Conversation

jhansche
Copy link
Owner

@jhansche jhansche commented Sep 29, 2023

This sets the config entry version to 2, which will initiate an entry migration. If the device is in the simplest broken state, then all it will do is rewrite the device identifiers to use vin.

If the devices were already conflated, especially if you had 2 or more teslafi accounts added, then it's possible that it might need to do a more destructive migration: deleting the old devices, disassociating it from the config entries, and then let the integration start up normally with the new VIN identifiers.

If it had to do a destructive migration, any entity overrides you may have done (like enabling one of the disabled-by-default entities, renaming an entity or entity_id, changing an icon, etc) will also be reset. However, as long as the entity id of the migrated entry still matches the original entity id, your entity history should be preserved, and any automations you already had set up should also continue to work.

@jhansche jhansche linked an issue Sep 30, 2023 that may be closed by this pull request
@jhansche jhansche merged commit 2159322 into main Sep 30, 2023
6 checks passed
@jhansche jhansche deleted the pr/fix-4 branch September 30, 2023 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple cars info combined into one device
1 participant