mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-04-13 06:13:07 +01:00
Fix: reorder events so the feed makes more sense
This commit is contained in:
@@ -454,11 +454,14 @@ def sendStopEvent(source) {
|
|||||||
eventData.value += "cancelled"
|
eventData.value += "cancelled"
|
||||||
}
|
}
|
||||||
|
|
||||||
sendControllerEvent(eventData)
|
// send 100% completion event
|
||||||
// send 100% completion
|
|
||||||
sendTimeRemainingEvent(100)
|
sendTimeRemainingEvent(100)
|
||||||
|
|
||||||
// send a non-displayed 0% completion to reset tiles
|
// send a non-displayed 0% completion to reset tiles
|
||||||
sendTimeRemainingEvent(0, false)
|
sendTimeRemainingEvent(0, false)
|
||||||
|
|
||||||
|
// send sessionStatus event last so the event feed is ordered properly
|
||||||
|
sendControllerEvent(eventData)
|
||||||
}
|
}
|
||||||
|
|
||||||
def sendTimeRemainingEvent(percentComplete, displayed = true) {
|
def sendTimeRemainingEvent(percentComplete, displayed = true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user