@bind_hass
def turn_on(hass, entity_id, variables=None, context=None):
    'Turn script on.\n\n    This is a legacy helper method. Do not use it for new tests.\n    '
    (_, object_id) = split_entity_id(entity_id)
    hass.services.call(DOMAIN, object_id, variables, context=context)
Turn script on.

This is a legacy helper method. Do not use it for new tests.
@bind_hass
def turn_on(hass, entity_id, variables=None, context=None):
    'Turn script on.\n\n    This is a legacy helper method. Do not use it for new tests.\n    '
    (_, object_id) = split_entity_id(entity_id)
    hass.services.call(DOMAIN, object_id, variables, context=context)