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

    import lirc
    lirc.init('home-assistant', blocking=False)
    lirc_interface = LircInterface(hass)
    def _start_lirc(_event):
        lirc_interface.start()
    def _stop_lirc(_event):
        lirc_interface.stopped.set()
    hass.bus.listen_once(EVENT_HOMEASSISTANT_START, _start_lirc)
    hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, _stop_lirc)
    return True

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

def setup(hass, config):