-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Config Flow: SelectSelectorConfig does not display the saved selected item inside a section #22590
Comments
Can you share the code of your config flow that's exhibiting this problem? |
Hi, thanks for the quick reply; I created a configuration flow that reproduces the problem, let me know if you need anything else. config_flow.py
en.json
|
So I tried this out w/ kitchen_sink integration (a dummy/testing integration), and I couldn't find a problem. If I run options flow and select a value in the selector, and save, and run options flow again, the previously selected item is populated. If you have a core dev environment, do you want to try running this PR (home-assistant/core#129503), and see if it's working as you would expect? Maybe you can compare the code difference between the two to see if anything is missing. I don't see anything obviously wrong in your code, but I am not an expert in config flows. |
Hi, I can't do this kind of test at the moment, because I don't have a development environment. |
The working solution is given in #22419. PR to fix documentation: home-assistant/developers.home-assistant#2454 |
Checklist
Describe the issue you are experiencing
Hi, I have a ConfigFlow with a section inside that contains a SelectSelectorConfig.
When I select an item and save the changes, when I reopen the configuration, the data that was selected is no longer selected (even though this was actually saved correctly).
Describe the behavior you expected
Steps to reproduce the issue
Here is an example of the saved data (including 2 BooleanSelectors).
As you can see when you reopen the config flow, the BooleanSelectors keep the selected values while the SelectSelectorConfig does not.
What version of Home Assistant Core has the issue?
2024.10.4
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
No response
Which operating system are you using to run this browser?
No response
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: