dmulcahey / zha-network-card

Custom Lovelace card that displays ZHA network and device information
GNU General Public License v3.0
95 stars 20 forks source link

0.107.b0+ #12

Closed roblandry closed 4 years ago

roblandry commented 4 years ago
Uncaught ReferenceError: transpose is not defined
    at zha-network-card.js:3
ALERTua commented 4 years ago

same here 2020-03-15 12:32:32 ERROR (MainThread) [frontend.js.latest.202003130] http://hassio.local:8123/hacsfiles/zha-network-card/zha-network-card.js:3:11 Uncaught ReferenceError: transpose is not defined

jeepotvin commented 4 years ago
Logger: frontend.js.latest.202002205
First occured: 10:56:34 AM (1 occurences)
Last logged: 10:56:34 AM

https://xxxxxxxx/community_plugin/zha-network-card/zha-network-card.js:3:11 Uncaught ReferenceError: transpose is not defined

Same error here but running 0.106.6

roblandry commented 4 years ago

change it to this in the js file and delete the gz file. if you want the gz file, then you will have to create the zip again. i am not sure listify needs the var in front of it, but it worked for transpose, so i added it to listify also. i dont know anything about js, just trial and error, lol.

var transpose = m => m[0].map((x, i) => m.map(x => x[i]));

// single items -> Array with item with length == 1
var listify = obj => (obj instanceof Array ? obj : [obj]);
JamesDenby commented 4 years ago

I have the same problem on 108.3

ryan8382 commented 4 years ago

Same issue in 109.1