Where original_screen_timeout is a variable that is set earlier in the script. When I run my script I get the error:
Failed to call service script.myscript. expected str for dictionary value @ data['value']. Got None
After some fiddling about it seems that the value needs to be a string in quotes but for some reason no mater what I do the script will call the service like:
value: 60
Which doesn’t work. If I call the service by hand with the same value I get the same error. I’ve tried wrapping it in quotes and that stopped the error but the service didn’t run correctly because the service is called with:
Right now I’m calling the script via the developer tools and I’m not passing that variable to the script directly, it’s read a little further up in the script:
But if I put the value in quotes (which the UI does as well) it works. It’s very weird.
I was looking at the source for the Full Kiosk integration and I wonder if part of the issue is this line that validates the value as a bool or string. It seems like it would work if that were expanded to include numeric values then cast them to strings before making the actual call (or something like that, my Python is trash lol)
Looks like this was an issue where I had suspected. It required a few more changes than expected but it seems to be working now and I’ve created a PR for the fix