@bind_hass
def toggle(hass, entity_id):
    'Toggle the script.\n\n    This is a legacy helper method. Do not use it for new tests.\n    '
    hass.services.call(DOMAIN, SERVICE_TOGGLE, {ATTR_ENTITY_ID: entity_id})
Toggle the script.

This is a legacy helper method. Do not use it for new tests.
@bind_hass
def toggle(hass, entity_id):
    'Toggle the script.\n\n    This is a legacy helper method. Do not use it for new tests.\n    '
    hass.services.call(DOMAIN, SERVICE_TOGGLE, {ATTR_ENTITY_ID: entity_id})