Skip to content

Commit

Permalink
exit handle switches when child app is still setting up
Browse files Browse the repository at this point in the history
  • Loading branch information
adey committed Dec 24, 2017
1 parent b163ccc commit 5b7f228
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1881,7 +1881,7 @@ def handleSwitches(oldState = null, newState = null) {
ifDebug("${app.label} room state - old: ${oldState} new: ${newState}")
// state.roomState = newState
// "yyyy-MM-dd'T'HH:mm:ssZ" = 2017-11-13T23:32:45+0000
if (!newState || oldState == newState) return false;
if (!oldState || !newState || oldState == newState) return false;
def nowDate = now()
state.previousState = ['state':newState, 'date':nowDate]
previousStateStack(state.previousState)
Expand Down

0 comments on commit 5b7f228

Please sign in to comment.