From b15b5d095d216469b9ba24371d69dad038355378 Mon Sep 17 00:00:00 2001 From: jlinn Date: Wed, 10 Nov 2021 23:45:53 -0800 Subject: [PATCH] Use zwaveSecureEncap when sending secure commands --- Drivers/Z-Wave-Firmware-Updater/zwaveFirmwareUpdater.groovy | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Drivers/Z-Wave-Firmware-Updater/zwaveFirmwareUpdater.groovy b/Drivers/Z-Wave-Firmware-Updater/zwaveFirmwareUpdater.groovy index b914507..a048b8d 100644 --- a/Drivers/Z-Wave-Firmware-Updater/zwaveFirmwareUpdater.groovy +++ b/Drivers/Z-Wave-Firmware-Updater/zwaveFirmwareUpdater.groovy @@ -594,11 +594,9 @@ String secureCommand(hubitat.zwave.Command cmd) { } String secureCommand(String cmd) { - String encap="" if (getDataValue("zwaveSecurePairingComplete") != "true") { return cmd } else { - encap = "988100" + return zwaveSecureEncap(cmd) } - return "${encap}${cmd}" } \ No newline at end of file