I've been trying to rationalise and improve a lot of my sprawling python scripts, and I'm not sure if this is possible.
At present I have some action groups that run that have multiple lines for clearing device specific delayed actions, like so:
indigo.device.removeDelayedActions(monitor)
indigo.device.removeDelayedActions(lights)
indigo.device.removeDelayedActions(fan)
etc
I've been trying to find a way to get it into one single line. Most of what I've tried has failed on a syntax error. Closest I can find is:
indigo.device.removeDelayedActions(monitor),(lights),(fan)
but this doesn't seem to remove the delayed actions at all. Is this possible and if so what's the best way to do it?