mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +00:00
Represent arrays nicer in default mor info
This commit is contained in:
parent
7373733c41
commit
8050e08615
@ -20,6 +20,8 @@ export default new Polymer({
|
||||
},
|
||||
|
||||
getAttributeValue(stateObj, attribute) {
|
||||
return stateObj.attributes[attribute];
|
||||
const value = stateObj.attributes[attribute];
|
||||
|
||||
return Array.isArray(value) ? value.join(', ') : value;
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user