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

Update README.md #75

Merged
merged 1 commit into from
Dec 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 2 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,6 @@ how.

**Recently discovered....**: custom-ui facilitates setting a [Jinja template on custom attributes](https://github.com/Mariusthvdb/custom-ui/blob/master/EXAMPLES.md#however-experimental-recently-discovered) in core integrations that allow setting a custom attribute.

[@bratanon](https://github.com/bratanon) joined and please welcome him as new co-maintainer of this
repo. Thanks to Emil we can again enjoy the full options of Custom-ui, and do so with more readable
code than the minimized version we were using up to now.

As of HA 2022.4, state templating (using `state:`) is no longer supported in custom-ui. We now show users a warning
in the console if using the none supported state templating.

```yaml
# !!! THIS DOES NOT WORK ANYMORE AND WILL SHOW A WARNING !!!
templates:
state: if (state === 'home') return 'Online'; return 'Offline';
```

To clearify this again. Using `state` **IN** the condition **WILL WORK**.
```yaml
# This is STILL VALID
templates:
icon_color: if (state === 'home') return 'blue'; return 'red';
```
**Note the "keys" (state, icon_color) differs.**

Other templating still works the same.

---

## Installation
Expand Down Expand Up @@ -79,11 +56,10 @@ or when using the UI, click
4. Refresh home-assistant.

### Other installation methods
See [INSTALLING.md](https://github.com/Mariusthvdb/custom-ui/blob/master/INSTALLING.md)
See [INSTALLING](https://github.com/Mariusthvdb/custom-ui/blob/master/INSTALLING.md)

## Examples
Examples can be found
[here](https://github.com/Mariusthvdb/custom-ui/blob/master/EXAMPLES.md).
See [EXAMPLES](https://github.com/Mariusthvdb/custom-ui/blob/master/EXAMPLES.md).

---

Expand Down