home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.71k stars 30.84k forks source link

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

Open HarvsG opened 1 month ago

HarvsG commented 1 month ago

The problem

This is possibly a front-end issue. I am assuming it is 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.

Whilst generating a config flow for the Bayesian Integration in https://github.com/home-assistant/core/pull/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:

https://github.com/user-attachments/assets/dfec2aba-2606-49a3-8122-fbae38087dda

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

https://github.com/user-attachments/assets/1fd95fe7-9496-4248-8dd4-368d0f8002ca

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: https://github.com/home-assistant/core/issues/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

home-assistant[bot] commented 1 month ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (group) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `group` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign group` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


group documentation group source (message by IssueLinks)

gjohansson-ST commented 1 month ago

While I experienced the same thing. I think this is a frontend issue and not a core issue so think it should be raised there