def METHOD_NAME(self, config):
    logger.debug('delay: {}', config)
    try:
        return parse_timedelta(config)
    except ValueError:
        raise plugin.PluginError('Invalid time format', logger)