Create new ReadOnly Selector for presenting config entry data which should not change #1142
Replies: 5 comments 5 replies
-
Some integrations are using attributes to do just that. I've since moved to the diagnostics integration, and simply dump the full config flow |
Beta Was this translation helpful? Give feedback.
-
I hope I understand the problem correctly and that the following alternatives fit to some extend. Alternative 1: Pros:
Cons:
Alternative 2: Pros:
Cons:
Use cases: |
Beta Was this translation helpful? Give feedback.
-
What if we just add a "readonly" property to the current selectors? That way the frontend would leave the field locked and wouldn't have a problem with the different data types. |
Beta Was this translation helpful? Give feedback.
-
Don’t we already have this: https://www.home-assistant.io/docs/blueprint/selectors/#constant-selector |
Beta Was this translation helpful? Give feedback.
-
Closing as there is a better proposal here home-assistant/core#129456 |
Beta Was this translation helpful? Give feedback.
-
Background
In many integration config flows (and even more in helpers) users are having issues not knowing (remembering?) configuration data they have set during the initial creation of the config entry.
So in many cases they would expect to see this once they click "options" but as these are data that should not be changed they are not presented.
Example issue here were a user don't know what state characteristics he set initially on the sensor.
This only address the need of seeing certain configuration entry data during a configuration entry options flow.
As with below comments to see it elsewhere is not part of this proposal as that would not make it easier for the user.
Proposal
Create a
ReadOnly
selector that can be used for the purpose of displaying data which the user should not be able to change but would be good to see during configuration of options.Pros
Cons
Alternatives to consider
Could be presented in other manner in the form, use of description field or simply just skip at all.
Beta Was this translation helpful? Give feedback.
All reactions