Skip to content

Commit

Permalink
Support hiding main entity name with name: false (#131, #134, #179)
Browse files Browse the repository at this point in the history
  • Loading branch information
benct committed Dec 17, 2021
1 parent 00bdbde commit ae2e937
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ This card produces an `entity-row` and must therefore be configured as an entity
| type | string | **Required** | `custom:multiple-entity-row` |
| entity | string | **Required** | Entity ID (`domain.my_entity_id`) |
| attribute | string | | Show an attribute instead of the state value |
| name | string | `friendly_name` | Override entity friendly name |
| unit | string | `unit_of_measurement` | Override entity unit of measurement |
| name | string/bool | `friendly_name` | Override entity friendly name |
| unit | string/bool | `unit_of_measurement` | Override entity unit of measurement |
| icon | string | `icon` | Override entity icon or image |
| image | string | | Show an image instead of icon |
| toggle | bool | `false` | Display a toggle (if supported) instead of state |
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class MultipleEntityRow extends LitElement {
this.entityIds = getEntityIds(config);
this.onRowClick = this.clickHandler(config.entity, config.tap_action);

this.config = config;
this.config = { ...config, name: config.name === false ? ' ' : config.name };
}

shouldUpdate(changedProps) {
Expand Down

0 comments on commit ae2e937

Please sign in to comment.