def setup_platform(hass, config, add_devices, discovery_info=None):
    'Setup the available BloomSky weather sensors.'
    logger = logging.getLogger(__name__)
    bloomsky = get_component('bloomsky')
    sensors = config.get('monitored_conditions', SENSOR_TYPES)
    for device in bloomsky.BLOOMSKY.devices.values():
        for variable in sensors:
            if (variable in SENSOR_TYPES):
                add_devices([BloomSkySensor(bloomsky.BLOOMSKY, device, variable)])
            else:
                logger.error('Cannot find definition for device: %s', variable)
Setup the available BloomSky weather sensors.
def setup_platform(hass, config, add_devices, discovery_info=None):
    
    logger = logging.getLogger(__name__)
    bloomsky = get_component('bloomsky')
    sensors = config.get('monitored_conditions', SENSOR_TYPES)
    for device in bloomsky.BLOOMSKY.devices.values():
        for variable in sensors:
            if (variable in SENSOR_TYPES):
                add_devices([BloomSkySensor(bloomsky.BLOOMSKY, device, variable)])
            else:
                logger.error('Cannot find definition for device: %s', variable)