human
I wrote the below code

    if (discovery_info is None):
        return
    data = ecobee.NETWORK
    hold_temp = discovery_info['hold_temp']
    _LOGGER.info('Loading    ecobee    thermostat    component    with    hold_temp    set    to    %s', hold_temp)
    devices = [Thermostat(data, index, hold_temp) for index in range(len(data.ecobee.thermostats))]
    add_devices(devices)
    def fan_min_on_time_set_service(service):
        'Set    the    minimum    fan    on    time    on    the    target    thermostats.'
        entity_id = service.data.get(ATTR_ENTITY_ID)
        fan_min_on_time = service.data[ATTR_FAN_MIN_ON_TIME]
        if entity_id:
            target_thermostats = [device for device in devices if (device.entity_id in entity_id)]
        else:
            target_thermostats = devices
        for thermostat in target_thermostats:
            thermostat.set_fan_min_on_time(str(fan_min_on_time))
            thermostat.schedule_update_ha_state(True)
    def resume_program_set_service(service):
        'Resume    the    program    on    the    target    thermostats.'
        entity_id = service.data.get(ATTR_ENTITY_ID)
        resume_all = service.data.get(ATTR_RESUME_ALL)
        if entity_id:
            target_thermostats = [device for device in devices if (device.entity_id in entity_id)]
        else:
            target_thermostats = devices
        for thermostat in target_thermostats:
            thermostat.resume_program(resume_all)
            thermostat.schedule_update_ha_state(True)
    descriptions = load_yaml_config_file(path.join(path.dirname(__file__), 'services.yaml'))
    hass.services.register(DOMAIN, SERVICE_SET_FAN_MIN_ON_TIME, fan_min_on_time_set_service, descriptions.get(SERVICE_SET_FAN_MIN_ON_TIME), schema=SET_FAN_MIN_ON_TIME_SCHEMA)
    hass.services.register(DOMAIN, SERVICE_RESUME_PROGRAM, resume_program_set_service, descriptions.get(SERVICE_RESUME_PROGRAM), schema=RESUME_PROGRAM_SCHEMA)

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def setup_platform(hass, config, add_devices, discovery_info=None):