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

Integration messed up the ./storage/core.config_entries file somehow #528

Open
cryptedx opened this issue Dec 22, 2024 · 3 comments
Open

Comments

@cryptedx
Copy link

Hi,

Describe the bug
I had the issue that I could not edit, remove and add integrations. See also issue I created this: home-assistant/core#123949

The root cause was, that the meross integration messed up the ./storage/core.config_entries file somehow.

broken_config_part.json

Your environment

  • HomeAssistant version:
  • Core 2024.12.5
  • Supervisor 2024.12.0
  • Operating System 14.1
  • Frontend 20241127.8

Hardware environment:

  • Proxmox LXC container
@donations-bot-prod
Copy link

Donation bot here. Supporters can mark their interest in this issue by adding a comment
starting with "+1" (without quotes) or adding the "#supporter_sponsor" keyword
(without quotes) in their comments.

You can become a donor by subscribing as Sponsor from the GitHub sponsorship page or from the BuyMeACoffee page.

Issues marked by donors will be labeled accordingly and handled with special care

@svengoranturner
Copy link

svengoranturner commented Dec 30, 2024

I have just run into the same issue. I had several integrations unrelated to Meross that would require re-authentication every time I restarted HA. After about a week of troubleshooting I stumbled upon this thread:

https://community.home-assistant.io/t/changes-on-integrations-are-reset-after-reboot/782085/8

That tipped me off to check the Meross config_entries file and I found that this part of the Meross entry:

"mqtt_domain":["mqtt-eu-4.meross.com"]

...looked like this:

"mqtt_domain":[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[["mqtt-eu-4.meross.com"]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]

I removed all the unnecessary [ ] and restarted, and all the integrations that were failing worked again. However, when I went back to check the Meross config_entries line, it now looked like:

"mqtt_domain":[["mqtt-eu-4.meross.com"]]

I tried rebooting again, and it looked like:

"mqtt_domain":[[["mqtt-eu-4.meross.com"]]]

So it appears that every restart causes another [ ] pair to be added for some reason. Strangely, the failed integrations still work, so it seems that at some point Home Assistant can't cope with all the brackets and weird stuff starts to happen.

Afraid that's as far as I've got, but hopefully will be of some use...

@cryptedx
Copy link
Author

You are right. It's starting again:

mqtt_domain":[[[[[[[[[[[[[[[[[[[[[[[[[[[["mqtt-eu-4.meross.com"]]]]]]]]]]]]]]]]]]]]]]]]]]]]

ugh

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

No branches or pull requests

2 participants