jtebbens / com.homewizard

Homewizard app for Homey
9 stars 7 forks source link

fix: await add/remove capability #39

Closed RobinBol closed 3 years ago

RobinBol commented 3 years ago

Hi! I noticed you are using addCapability and removeCapability without awaiting, these are async methods that should be awaited in principle. I was tracing a bug that might be related to the fact that this app calls addCapability and setCapabilityValue directly after each other without awaiting the first. Could you consider merging this PR?

Please note: I could not test this.