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

Some helpers fail to load in the UI until a page refresh #23599

Closed
HarvsG opened this issue Jan 6, 2025 · 4 comments
Closed

Some helpers fail to load in the UI until a page refresh #23599

HarvsG opened this issue Jan 6, 2025 · 4 comments

Comments

@HarvsG
Copy link

HarvsG commented Jan 6, 2025

The problem

This is possibly a front-end issue.
I had assumed it was a core issue - because it doesn't happen for most helpers - so I therefore assume it is an issue with how components do or do not update the entity registry. However on home-assistant/core#126927 I was asked to post it here.

Whilst generating a config flow for the Bayesian Integration in home-assistant/core#122552 I came across a re-producible issue with it and several other, in-production config flows.
For some helpers, when a new helper is added it displays an error on the page until the page is refreshed.

Issue with group:

Recording.2024-09-27.153342.mp4

Same issue with integral, also showing page refresh at the end:

Recording.2024-09-27.153527.mp4

What version of Home Assistant Core has the issue?

core-2024.11.0.dev0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Group, Integral

Link to integration documentation on our website

https://www.home-assistant.io/integrations/group/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No errors in the logs
No errors in the web browser console

Additional information

Tested on chrome and edge.
Possibly related: home-assistant/core#124055
Related forum issue: https://community.home-assistant.io/t/how-to-remove-a-helper-without-entity-id/689704/15

It is possible the issue is somewhere in this function: https://github.com/home-assistant/core/blob/b458b204f0c29bd93a8cb4a851c7b5502de7761f/homeassistant/config_entries.py#L1344

@karwosts
Copy link
Contributor

karwosts commented Jan 6, 2025

Can you retry in a more recent version? I think this was fixed last month.

@HarvsG
Copy link
Author

HarvsG commented Jan 7, 2025

Yes, I cannot re-create the issues on 2025.1.0
Any idea which PR fixed the issue? It would be helpful to know for my feature branch?

@HarvsG HarvsG closed this as completed Jan 7, 2025
@karwosts
Copy link
Contributor

karwosts commented Jan 7, 2025

Believe it was this one:

#22237

@HarvsG
Copy link
Author

HarvsG commented Jan 7, 2025

Amazing, thank you

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