def is_on(hass, entity_id=None):
    entity_id = entity_id or ENTITY_ID_ALL_SWITCHES
    return hass.states.is_state(entity_id, STATE_ON)
Finds all users contained in the list of `users_perms_and_groups`
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/__init__.py/is_on--crossover with--dataset/ETHPy150Open edgewall/trac/trac/ticket/default_workflow.py/ConfigurableTicketWorkflow._to_users