v2.x.x Breaking Change to Entity History #21
Replies: 2 comments 2 replies
-
@WillCodeForCats I followed your upgrade howto and have maintained my entity history. Thanks for your work with this, it has been a great integration for my setup with two inverters and one meter. |
Beta Was this translation helpful? Give feedback.
-
I'm running 2.0.0-pre.2 on my live system and didn't lose any data after deleting, upgrading, and re-adding the integration so that it would recreate the same entity names with the fixed unique_id internally. I did end up reverting the meter entity name change because all my import/export data was lost in the energy dashboard from that change, which was unacceptable. I will probably leave the meter naming alone. If there are multiple meters that cause a name to duplicate Home Assistant should automatically handle that by appending _2, _3, etc. to the entity names. |
Beta Was this translation helpful? Give feedback.
-
Since this integration was forked then copied from another integration, there were things from the original that don't follow the Home Assistant developer guide. One of those things is the "unique ID" for entities. Unfortunately fixing this to follow the guidelines means that entity history will be lost, although entity names will remain unchanged.
This breaking change will probably happen with a v2.0.0 release, which is to say not anytime soon, but just a heads up that it will be coming eventually.
Reference: https://developers.home-assistant.io/docs/entity_registry_index/
Edit: the future is now, v2.x.x is ready.
Beta Was this translation helpful? Give feedback.
All reactions