jcgoette / baby_buddy_homeassistant

This custom integration provides sensors for Baby Buddy API endpoints.
MIT License
64 stars 30 forks source link

Every upgrade of Baby Buddy app causes duplicate entities in HomeAssistant #123

Closed adampetrovic closed 1 year ago

adampetrovic commented 1 year ago

Hi. I am currently running the latest BabyBuddy version (2.0.4) and have noticed with every version bump that my entities in HomeAssistant get recreated with a _2 suffix and I have to delete the original and rename everything, which is a little tedious.

Any ideas why this is happening?

CleanShot 2023-08-05 at 08 48 41@2x

jcgoette commented 1 year ago

The only thing that springs to mind would be if you're API key is changing with each upgrade? I kind of doubt that though.

adampetrovic commented 1 year ago

The integration doesn't have any problem with authenticating after Baby Buddy upgrades, it seems that it tries to recreate the entities every time rather than re-using the existing entities.

jcgoette commented 1 year ago

Anything interesting in the logs?

jcgoette commented 1 year ago

Over 1 month old, no reply. Closing as stale for now.