From e02a8da173357ec4e227307995748b5006ec8716 Mon Sep 17 00:00:00 2001 From: Chrischi- Date: Wed, 23 Jan 2019 17:35:35 +0100 Subject: [PATCH] fixed var name. (#235) --- converters/fromZigbee.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/converters/fromZigbee.js b/converters/fromZigbee.js index 0d281b404672c8..edfad979f85495 100644 --- a/converters/fromZigbee.js +++ b/converters/fromZigbee.js @@ -3834,7 +3834,7 @@ const converters = { result.control_sequence_of_operation = common.thermostatControlSequenceOfOperations[ctrl]; } const smode = msg.data.data['systemMode']; - if (typeof mode == 'number' && common.thermostatSystemModes.hasOwnProperty(smode)) { + if (typeof smode == 'number' && common.thermostatSystemModes.hasOwnProperty(smode)) { result.system_mode = common.thermostatSystemModes[smode]; } const rmode = msg.data.data['runningMode'];