Skip to content

Commit b50aedb

Browse files
committed
docs: add unit to documentation (ciotlosm#194)
1 parent baf4f46 commit b50aedb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

entity-attributes-card/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Entity attributes allows you to show basic attributes from multiple entities.
2020
| ---- | ---- | ------- | -----------
2121
| key | string | **Required** | A pattern for the attribute. Example: `media_player.bedroom.media_title`
2222
| name | string | optional | A string to replace the actual attribute name with
23+
| unit | string | optional | A string to append an arbitrary unit to the value
2324

2425
**Example**
2526

@@ -36,6 +37,8 @@ Entity attributes allows you to show basic attributes from multiple entities.
3637
- key: media_player.bedroom.media_title
3738
name: Media center
3839
- climate.heatpump.current_temperature
40+
- vacuum.xiaomi_mi_robot.battery_level
41+
unit: %
3942
```
4043
4144
How to embed this inside `entities` card:
@@ -55,4 +58,4 @@ How to embed this inside `entities` card:
5558
- media_player.bedroom.media_title
5659
- sensor.short_name
5760
- sensor.battery_sensor
58-
```
61+
```

0 commit comments

Comments
 (0)