human
I wrote the below code

    from gsp import GstreamerPlayer
    name = config.get(CONF_NAME)
    pipeline = config.get(CONF_PIPELINE)
    player = GstreamerPlayer(pipeline)
    def _shutdown(call):
        'Quit    the    player    on    shutdown.'
        player.quit()
    hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, _shutdown)
    add_devices([GstreamerDevice(player, name)])

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):