homebridge-bigAssFans icon indicating copy to clipboard operation
homebridge-bigAssFans copied to clipboard

Array Handling Error

Open davidvanvo opened this issue 7 years ago • 0 comments

Got the following error:

/usr/local/lib/node_modules/homebridge-bigAssFans/node_modules/BigAssFansAPI/BigAssApi.js:51
        var deviceType = msg[4].split(",",1); // Grab first part of string before ","
                               ^

TypeError: Cannot read property 'split' of undefined
    at FanMaster.<anonymous> (/usr/local/lib/node_modules/homebridge-bigAssFans/node_modules/BigAssFansAPI/BigAssApi.js:51:32)
    at FanMaster.<anonymous> (/usr/local/lib/node_modules/homebridge-bigAssFans/node_modules/BigAssFansAPI/BigAssApi.js:75:13)
    at emitTwo (events.js:106:13)
    at Socket.emit (events.js:192:7)
    at UDP.onMessage [as onmessage] (dgram.js:547:8)

...this error kills homebridge entirely.

davidvanvo avatar May 31 '17 00:05 davidvanvo