The only option I see now to do that, is delete the Action and recreate it, without selecting one.
A dynamic list is what I am migrating to instead of including more checkboxes that, hide the Action Group and perform logic to ignore it.
However as I pick at this, I thought I'd just ask is there another way to de-select?
I share my code in the event there is something else I could have done.
- Code: Select all
def actionsWithAnExit(self, filter="", valuesDict=None, typeId="", targetId=0):
action_group_list = [(ag.id,
ag.name.lower()) for ag in indigo.actionGroups]
sorted_list = sorted(action_group_list, key=lambda x: x[1])
sorted_list.append((0, '-=( Do Not Execute )=-'))
return sorted_list if sorted_list else [("Default", "")]