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