File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ attribute value instead of the state value. `icon` lets you display an icon inst
80
80
| toggle | bool | `false` | Display a toggle if supported by domain |
81
81
| icon | string/bool | `false` | Display default or custom icon instead of state or attribute value |
82
82
| state_color | bool | `false` | Enable colored icon when entity is active |
83
+ | default | string | | Display this value if the entity does not exist or should not be shown |
83
84
| hide_unavailable | bool | `false` | Hide entity if unavailable or not found |
84
85
| hide_if | object/any | _[Hiding](#hiding)_ | Hide entity if its value matches specified value or criteria |
85
86
| styles | object | | Add custom CSS styles to the entity element |
Original file line number Diff line number Diff line change @@ -107,6 +107,12 @@ class MultipleEntityRow extends LitElement {
107
107
108
108
renderEntity ( stateObj , config ) {
109
109
if ( ! stateObj || hideIf ( stateObj , config ) ) {
110
+ if ( config . default ) {
111
+ return html `< div class ="entity " style ="${ entityStyles ( config ) } ">
112
+ < span > ${ config . name } </ span >
113
+ < div > ${ config . default } </ div >
114
+ </ div > ` ;
115
+ }
110
116
return null ;
111
117
}
112
118
const onClick = this . clickHandler ( stateObj . entity_id , config . tap_action ) ;
You can’t perform that action at this time.
0 commit comments