def setup_platform(hass, config, add_entities, discovery_info=None):
    'Set up the Blockchain.com sensors.'
    addresses = config[CONF_ADDRESSES]
    name = config[CONF_NAME]
    for address in addresses:
        if (not validate_address(address)):
            _LOGGER.error('Bitcoin address is not valid: %s', address)
            return False
    add_entities([BlockchainSensor(name, addresses)], True)
Set up the Blockchain.com sensors.
def setup_platform(hass, config, add_entities, discovery_info=None):
    
    addresses = config[CONF_ADDRESSES]
    name = config[CONF_NAME]
    for address in addresses:
        if (not validate_address(address)):
            _LOGGER.error('Bitcoin address is not valid: %s', address)
            return False
    add_entities([BlockchainSensor(name, addresses)], True)