From 84d1c0ca31ec6ca308ea41c30af0560c30aa5b72 Mon Sep 17 00:00:00 2001 From: Quentame Date: Thu, 10 Oct 2019 18:52:03 +0200 Subject: [PATCH] Move imports in wunderlist component (#27391) --- homeassistant/components/wunderlist/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/wunderlist/__init__.py b/homeassistant/components/wunderlist/__init__.py index ce044499c63..122d09feaa4 100644 --- a/homeassistant/components/wunderlist/__init__.py +++ b/homeassistant/components/wunderlist/__init__.py @@ -2,6 +2,7 @@ import logging import voluptuous as vol +from wunderpy2 import WunderApi import homeassistant.helpers.config_validation as cv from homeassistant.const import CONF_NAME, CONF_ACCESS_TOKEN @@ -59,9 +60,7 @@ class Wunderlist: def __init__(self, access_token, client_id): """Create new instance of Wunderlist component.""" - import wunderpy2 - - api = wunderpy2.WunderApi() + api = WunderApi() self._client = api.get_client(access_token, client_id) _LOGGER.debug("Instance created")