Closed Bounz closed 9 years ago
Sometimes there is only one language in Pepper1 db file, for example https://github.com/genielabs/HomeGenie/blob/master/BaseFiles/Common/html/ext/zwave/pepper1db/010F_0B00_1001.json#L56. In such cases the exception was raised on call to zproperty.lang.filter() because zproperty.lang was not an array. Also I've added a check in Pepper1Db_getConfigValue function if passed parameter is undefined as I catched exceptions in this function.
zproperty.lang.filter()
zproperty.lang
Pepper1Db_getConfigValue
Sometimes there is only one language in Pepper1 db file, for example https://github.com/genielabs/HomeGenie/blob/master/BaseFiles/Common/html/ext/zwave/pepper1db/010F_0B00_1001.json#L56. In such cases the exception was raised on call to
zproperty.lang.filter()
becausezproperty.lang
was not an array. Also I've added a check inPepper1Db_getConfigValue
function if passed parameter is undefined as I catched exceptions in this function.