jcgoette / baby_buddy_homeassistant

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

All sensors missing after update to HA Core 2023.9 #139

Closed Frankenberrypi closed 9 months ago

Frankenberrypi commented 9 months ago

I saw this first when upgrading to 2023.9, then reverted and waited a few weeks. Today attempted to upgrade to 2023.9.2 with the same problem, reverted again. None of the sensors are available.
image

Back on my old backup of 2023.8.4, I remembered that another recent update caused a similar problem. That time it broke all my old entities, but it made new ones, so I could just point all my automations to the new stuff and it worked. This time around, nothing worked. Here is the old half working set: image

jcgoette commented 9 months ago

Logs?

vorpalhex commented 9 months ago

Able to repro here as well.

2023-09-14 12:53:31.367 ERROR (MainThread) [homeassistant.components.sensor] babybuddy: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'http://babybuddy:8000/children/CHILD/dashboard/', 'default_name': 'Baby CHILD ', 'identifiers': {('babybuddy', 1)}} for 'babybuddy' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-09-14 12:53:31.367 ERROR (MainThread) [homeassistant.components.sensor] babybuddy: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'http://babybuddy:8000/children/CHILD/dashboard/', 'default_name': 'Baby CHILD ', 'identifiers': {('babybuddy', 1)}} for 'babybuddy' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-09-14 12:53:31.367 ERROR (MainThread) [homeassistant.components.sensor] babybuddy: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'http://babybuddy:8000/children/CHILD/dashboard/', 'default_name': 'Baby CHILD ', 'identifiers': {('babybuddy', 1)}} for 'babybuddy' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-09-14 12:53:31.368 ERROR (MainThread) [homeassistant.components.sensor] babybuddy: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'http://babybuddy:8000/children/CHILD/dashboard/', 'default_name': 'Baby CHILD ', 'identifiers': {('babybuddy', 1)}} for 'babybuddy' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-09-14 12:53:31.368 ERROR (MainThread) [homeassistant.components.sensor] babybuddy: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'http://babybuddy:8000/children/CHILD/dashboard/', 'default_name': 'Baby CHILD ', 'identifiers': {('babybuddy', 1)}} for 'babybuddy' config entry: device info needs to either describe a device, link to existing device or provide extra information.
2023-09-14 12:53:31.368 ERROR (MainThread) [homeassistant.components.sensor] babybuddy: Not adding entity with invalid device info: Invalid device info {'configuration_url': 'http://babybuddy:8000/children/CHILD/dashboard/', 'default_name': 'Baby CHILD ', 'identifiers': {('babybuddy', 1)}} for 'babybuddy' config entry: device info needs to either describe a device, link to existing device or provide extra information.

(name has been replaced with CHILD)

Home Assistant 2023.9.2

jcgoette commented 9 months ago

What version of baby_buddy_homeassistant are you running?

Frankenberrypi commented 9 months ago

Mine is version 2.7.0 for baby_buddy_homeassistant. Baby buddy is version 2.0.4 if that matters.

I just saw the release notes for 2.7.1 that say Remove likely unnecessary default_name, fixes broken 2023.9, is that the fix we're looking for? Any advice on upgrade the integration or HA first?

jcgoette commented 9 months ago

Yes.

You've already updated HA, so... :)

Frankenberrypi commented 9 months ago

I rolled back to the old working state. Babies were screaming, diapers and feeding needed logging, so I panicked and restored the pre-update backup. I'll try both upgrades this time and report back.

Frankenberrypi commented 9 months ago

This seems to have fixed it for me. Currently on HA 2023.9.2, Baby Buddy 2.0.4, and baby_buddy_homeassistant 2.7.1. Everything seems to be working normally. @vorpalhex, try updating the integration through HACS.

vorpalhex commented 9 months ago

Updating it has it working again but I did have all new entity entries for some reason. Thanks for the follow up! I appreciate all the work you do on this integration jcgoette!