diff --git a/hardware/wemo/lib/wemo.js b/hardware/wemo/lib/wemo.js index 3de09768..c6d68fda 100644 --- a/hardware/wemo/lib/wemo.js +++ b/hardware/wemo/lib/wemo.js @@ -100,59 +100,61 @@ WeMoNG.prototype.start = function start() { res.on('end',function() { xml2js.parseString(data, function(err, result) { if(!err) { - var list = result["s:Envelope"]["s:Body"][0]["u:GetEndDevicesResponse"][0].DeviceLists[0]; - xml2js.parseString(list, function(err, result2) { - if (!err) { - var devinfo = result2.DeviceLists.DeviceList[0].DeviceInfos[0].DeviceInfo; - for (var i=0; i