def setup_platform(hass, config, add_devices, discovery_info=None):
    dev = []
    for resource in config['resources']:
        if 'arg' not in resource:
            resource['arg'] = ''
        if resource['type'] not in SENSOR_TYPES:
            _LOGGER.error('Sensor type: "%s" does not exist', resource['type'])
        else:
            dev.append(SystemMonitorSensor(resource['type'], resource['arg']))

    add_devices(dev)
Send out node deletion notifications.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/sensor/systemmonitor.py/setup_platform--crossover with--dataset/ETHPy150Open ralphm/wokkel/wokkel/iwokkel.py/IPubSubService.notifyDelete