'Initialize the API wrapper.'

def __init__(self, config):

    from qnapstats import QNAPStats
    protocol = ('https' if config.get(CONF_SSL) else 'http')
    self._api = QNAPStats(((protocol + '://') + config.get(CONF_HOST)), config.get(CONF_PORT), config.get(CONF_USERNAME), config.get(CONF_PASSWORD), verify_ssl=config.get(CONF_VERIFY_SSL), timeout=config.get(CONF_TIMEOUT))
    self.data = {}
