def when_all(*desired_states): """ Check if all of the desired_states are active and have changed. """ return helpers._when_all(desired_states)
def when(*desired_states): """ Alias of when_all. """ return helpers._when_all(desired_states)