Closed erodewald closed 4 years ago
@erodewald is this still an issue? I'm not sure about the returned values in these specific cases, but I've been using async / await with the current SDK extensively and not had a problem. What happens when you run the above code?
The above code does now work, though the returned values are different in the 2.0 version of the SDK which uses the SmartThings Core SDK for API calls.
Is your feature request related to a problem? Please describe. I can't use async-await syntax with API calls.
Describe the solution you'd like To avoid 'callback hell', I would like to be able to use code like this:
Describe alternatives you've considered N/A
Additional context It's not a cut-and-dry problem as there has been considerable thought put into making requests sequentially to abstract away complexities.