Skip to content

Commit

Permalink
v1.8.2 removed some unnecessary code in do_request()
Browse files Browse the repository at this point in the history
  • Loading branch information
yracine committed Nov 1, 2015
1 parent 72089dd commit 4dce7f4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions myautomatic.devicetype
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* My Automatic Device
*
* Copyright 2015 Yves Racine
* Version 1.8.1
* Version 1.8.2
* linkedIn profile: ca.linkedin.com/pub/yves-racine-m-sc-a/0/406/4b/
* Refer to readme file for installation instructions.
*
Expand Down Expand Up @@ -936,13 +936,6 @@ private def doRequest(uri, args, type, success) {
} catch (e) {
log.error "doRequest> exception $e " + params.uri
sendEvent name: "verboseTrace", value: "doRequest>exception $e at ${params.uri}"
def exceptionCheck=device.currentValue("verboseTrace")
if (!(exceptionCheck.contains("TimeoutException"))) {
// introduce a 1 second delay before re-attempting any other command
def cmd= []
cmd << "delay 1000"
cmd
}
throw e
}
}
Expand Down

0 comments on commit 4dce7f4

Please sign in to comment.