mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 02:06:42 +00:00
Allow empty names (#1515)
This commit is contained in:
parent
7953d960b6
commit
b32a6d58f3
@ -108,7 +108,7 @@ class HuiGlanceCard extends LocalizeMixin(EventsMixin(PolymerElement)) {
|
||||
}
|
||||
|
||||
_computeName(item, states) {
|
||||
return item.name || computeStateName(states[item.entity]);
|
||||
return 'name' in item ? item.name : computeStateName(states[item.entity]);
|
||||
}
|
||||
|
||||
_computeStateObj(item, states) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user