custom-cards / flex-table-card

Highly Flexible Lovelace Card - arbitrary contents/columns/rows, regex matched, perfect to show appdaemon created content and anything breaking out of the entity_id + attributes concept

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

user_given_name is obsolete, changing to friendly_name not working

rossbcan opened this issue · comments

zha-network-card.js change:

change all occurances of "user_given_name" to "friendly_name" not working.

How can I achieve this?

// collect the "raw" data from the requested source(s) if ("attr" in col) { return col.attr in this.device.attributes ? this.device.attributes[col.attr] : null; } else if ("prop" in col) { if (col.prop == "object_id") { return this.device.attributes.device_reg_id; } else if (col.prop == "name") { // handle device name customization if ( "user_given_name" in this.device.attributes && this.device.attributes["user_given_name"] ) { return this.device.attributes.user_given_name; } else { return this.device.attributes.name; } } else if (col.prop == "nwk") {

Oops, submitted wrong place. ZHA Network Card issue