We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b07fd51 commit 266f6e2Copy full SHA for 266f6e2
o365-card.js
@@ -183,7 +183,7 @@ import {
183
}
184
185
if (max_item == 0){
186
- if(attributeValue.size){
+ if(typeof(attributeValue.size) != 'unavailable'){
187
max_item = attributeValue.size;
188
}else{
189
max_item = 15;
@@ -256,7 +256,11 @@ import {
256
//Email
257
const attributeValue = this.hass.states[entityId].attributes['data'];
258
259
- max_item = attributeValue.size;
260
+ max_item = attributeValue.size;
261
+ }else{
262
+ max_item = 15;
263
+ }
264
265
return attributeValue ? html`
266
<ha-card class="card">
0 commit comments