mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 08:46:35 +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) {
|
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