Call refresh before configure

With the changes in https://smartthings.atlassian.net/browse/DPROT-168
it can take a little longer for the configuration process for a device
to complete.  As a result sensor values may not be available immediately
by calling the refresh commands before the configure commands we can
populate those values sooner.

This resolves: https://smartthings.atlassian.net/browse/DPROT-177
This commit is contained in:
Zach Varberg
2016-10-12 09:23:19 -05:00
parent 1068a553f5
commit 409658e899
17 changed files with 18 additions and 51 deletions

View File

@@ -133,7 +133,7 @@ def refresh() {
}
def configure() {
onOffConfig() + levelConfig() + powerConfig() + refresh()
refresh() + onOffConfig() + levelConfig() + powerConfig()
}