From 7978692f6cabbdc7b6e85d9fdac90a78e785ffe4 Mon Sep 17 00:00:00 2001
From: Johannes <29555657+joBr99@users.noreply.github.com>
Date: Sat, 20 May 2023 16:55:09 +0200
Subject: [PATCH] Update entities.md for upcoming version
---
docs/entities.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/entities.md b/docs/entities.md
index 65c6e268..20f07908 100644
--- a/docs/entities.md
+++ b/docs/entities.md
@@ -74,10 +74,10 @@ There probably not much cases where this is needed, but here is an exmaple to sh
icon: 'ha:{{ state_attr("climate.wohnzimmer_boden","current_temperature")}}'
```
-You can use the acual chars for the icon in the above ha: template, however if you want to use the icon names you can use `ha-i` instead. This will be evaluated as HA Template first and then looked up as an icon.
+If you want to display icons from a template you can put them between ``
```yaml
- icon: 'ha-i:{{ iif(is_state('light.kitchen', 'on'), 'mdi:flashlight', 'mdi:flashlight-off') }}'
+ icon: 'ha:{{ iif(is_state('light.kitchen', 'on'), 'mdi:flashlight', 'mdi:flashlight-off') }}'
```
## Hide item based on state