def turn_on(hass, entity_id):
    hass.services.call(DOMAIN, SERVICE_TURN_ON, {ATTR_ENTITY_ID: entity_id})
Set input_boolean to True.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/input_boolean.py/turn_on