zigbee-herdsman-converters 14.0.549 → 14.0.550

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -348,9 +348,11 @@ const converters = {
348
348
  type: ['attributeReport', 'readResponse'],
349
349
  options: [exposes.options.precision('temperature'), exposes.options.calibration('temperature')],
350
350
  convert: (model, msg, publish, options, meta) => {
351
- const temperature = parseFloat(msg.data['measuredValue']) / 100.0;
352
- const property = postfixWithEndpointName('temperature', msg, model);
353
- return {[property]: calibrateAndPrecisionRoundOptions(temperature, options, 'temperature')};
351
+ if (msg.data.hasOwnProperty('measuredValue')) {
352
+ const temperature = parseFloat(msg.data['measuredValue']) / 100.0;
353
+ const property = postfixWithEndpointName('temperature', msg, model);
354
+ return {[property]: calibrateAndPrecisionRoundOptions(temperature, options, 'temperature')};
355
+ }
354
356
  },
355
357
  },
356
358
  device_temperature: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.549",
3
+ "version": "14.0.550",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [