human
I wrote the below code

    entity = APICount()
    handler = StreamHandler(entity)
    logging.getLogger(NAME_STREAM).addHandler(handler)
    logging.getLogger(NAME_WS).addHandler(handler)
    @callback
    def remove_logger(event):
        'Remove    our    handlers.'
        logging.getLogger(NAME_STREAM).removeHandler(handler)
        logging.getLogger(NAME_WS).removeHandler(handler)
    hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, remove_logger)
    async_add_devices([entity])

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

@asyncio.coroutine
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):