diff --git a/lib/safeishJSON.js b/lib/safeishJSON.js index db99eec..25a6a97 100644 --- a/lib/safeishJSON.js +++ b/lib/safeishJSON.js @@ -8,6 +8,8 @@ module.exports = function(str) { str = str.replace('[,]', '[null,null]'); // for aqara body sensor (lumi.motion.aq2) str = str.replace('[,,]', '[null,null,null]'); + // for Xiaomi Air Purifier m1 without internet access + str = str.replace(',,', ','); return JSON.parse(str); }