diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-08 19:29:10 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-08 19:29:10 +0100 |
commit | 34d376cfcca1dd10a10ba3604da71796852db53d (patch) | |
tree | 85c610a26ceade5bdd3b6d7e7cb404cb8bd77d21 | |
parent | Allow events to be scheduled for today if there's time (diff) | |
download | toy-34d376cfcca1dd10a10ba3604da71796852db53d.zip |
Fix default removeRequest function
-rw-r--r-- | scripts/toy/toys.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/toy/toys.groovy b/scripts/toy/toys.groovy index 034c7fc..5dff717 100644 --- a/scripts/toy/toys.groovy +++ b/scripts/toy/toys.groovy @@ -10,7 +10,7 @@ remFunc: removeFunc ]; toy.addRequestable("un$toyState".toString(), removeReq, - removeReqFunc ?: { toy.requestRelease(stateName) }, + removeReqFunc ?: { toy.requestRelease(toyState) }, { toy.stateIs(toyState) }) }; |