human
Here's a good function header given the following:
I wrote the below code

    if (discovery_info is None):
        return
    (vin, _) = discovery_info
    vehicle = hass.data[DATA_KEY].vehicles[vin]
    def see_vehicle(vehicle):
        'Handle    the    reporting    of    the    vehicle    position.'
        host_name = vehicle.registration_number
        dev_id = 'volvo_{}'.format(slugify(host_name))
        see(dev_id=dev_id, host_name=host_name, gps=(vehicle.position['latitude'], vehicle.position['longitude']), icon='mdi:car')
    dispatcher_connect(hass, SIGNAL_VEHICLE_SEEN, see_vehicle)
    dispatcher_send(hass, SIGNAL_VEHICLE_SEEN, vehicle)
    return True

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

def setup_scanner(hass, config, see, discovery_info=None):