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

Allow Default values for entities/allow still creating the row element #191 #241

Merged
merged 1 commit into from
May 30, 2023

Conversation

kamtschatka
Copy link
Contributor

Added the possibility to show a default value in the UI if the entity does not exist or should not be shown
updated the README.MD to describe the default parameter

See #191 for the full description of the Problem

…benct#191

Added the possibility to show a default value in the UI if the entity does not exist or should not be shown
updated the README.MD to describe the default parameter
@benct benct merged commit 872354d into benct:master May 30, 2023
@@ -80,6 +80,7 @@ attribute value instead of the state value. `icon` lets you display an icon inst
| toggle | bool | `false` | Display a toggle if supported by domain |
| icon | string/bool | `false` | Display default or custom icon instead of state or attribute value |
| state_color | bool | `false` | Enable colored icon when entity is active |
| default | string | | Display this value if the entity does not exist or should not be shown |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently this description is very unclear.
Please elaborate:

  1. "Does not exist": means "the entity does not exist"?
  2. "Or should not be shown": if the entity is a valid one (sun.sun) and the default option is specified - what we will see then? Seems that this description should be changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I am not sure what you mean with the first the question, as this is the exact description I have added. The description says "if the entity does not exist".
  • "or should not be shown". There is a "hide_if" option. If the entity should not be shown because of this "hide_if" value/criteria matches, it would fall back to the default value.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • There is a "hide_if" option. If the entity should not be shown because of this "hide_if" value/criteria matches, it would fall back to the default value.

I suggest to explicitly mention the hide_if option in this description.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this is not only about hide_if option - seems that it works with hide_unavailable too

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ildar170975
Copy link

Found a bug: #302

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

Successfully merging this pull request may close these issues.

None yet

3 participants