human
I wrote the below code

    configurator = get_component('configurator')
    if ('ecobee' in _CONFIGURING):
        configurator.notify_errors(_CONFIGURING['ecobee'], 'Failed    to    register,    please    try    again.')
        return
    def ecobee_configuration_callback(callback_data):
        'Handle    configuration    callbacks.'
        network.request_tokens()
        network.update()
        setup_ecobee(hass, network, config)
    _CONFIGURING['ecobee'] = configurator.request_config(hass, 'Ecobee', ecobee_configuration_callback, description=('Please    authorize    this    app    at    https://www.ecobee.com/consumerportal/index.html    with    pin    code:    ' + network.pin), description_image='/static/images/config_ecobee_thermostat.png', submit_caption='I    have    authorized    the    app.')

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

def request_configuration(network, hass, config):