From af205b0e3eaa4f00a73ee7de0ab05ea39c5ea8c0 Mon Sep 17 00:00:00 2001 From: Chrischi- Date: Wed, 23 Jan 2019 17:33:32 +0100 Subject: [PATCH] fixed var name. --- converters/fromZigbee.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/converters/fromZigbee.js b/converters/fromZigbee.js index 3694f36fb8d23..282c71ca85e15 100644 --- a/converters/fromZigbee.js +++ b/converters/fromZigbee.js @@ -1323,7 +1323,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'];