summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-08 19:29:10 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-08 19:29:10 +0100
commit34d376cfcca1dd10a10ba3604da71796852db53d (patch)
tree85c610a26ceade5bdd3b6d7e7cb404cb8bd77d21 /scripts
parentAllow events to be scheduled for today if there's time (diff)
downloadtoy-34d376cfcca1dd10a10ba3604da71796852db53d.zip
Fix default removeRequest function
Diffstat (limited to 'scripts')
-rw-r--r--scripts/toy/toys.groovy2
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) })
};