human
I wrote the below code

    api_key = config.get(CONF_API_KEY)
    api_secret = config.get(CONF_API_SECRET)
    sensor_id = config.get(CONF_SENSOR_ID)
    data = NeurioData(api_key, api_secret, sensor_id)
    @Throttle(MIN_TIME_BETWEEN_DAILY_UPDATES)
    def update_daily():
        'Update    the    daily    power    usage.'
        data.get_daily_usage()
    @Throttle(MIN_TIME_BETWEEN_ACTIVE_UPDATES)
    def update_active():
        'Update    the    active    power    usage.'
        data.get_active_power()
    update_daily()
    update_active()
    add_devices([NeurioEnergy(data, ACTIVE_NAME, ACTIVE_TYPE, update_active)])
    add_devices([NeurioEnergy(data, DAILY_NAME, DAILY_TYPE, update_daily)])

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

def setup_platform(hass, config, add_devices, discovery_info=None):