mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Move imports in wunderlist component (#27391)
This commit is contained in:
parent
91379b0ff7
commit
84d1c0ca31
@ -2,6 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
from wunderpy2 import WunderApi
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.const import CONF_NAME, CONF_ACCESS_TOKEN
|
from homeassistant.const import CONF_NAME, CONF_ACCESS_TOKEN
|
||||||
@ -59,9 +60,7 @@ class Wunderlist:
|
|||||||
|
|
||||||
def __init__(self, access_token, client_id):
|
def __init__(self, access_token, client_id):
|
||||||
"""Create new instance of Wunderlist component."""
|
"""Create new instance of Wunderlist component."""
|
||||||
import wunderpy2
|
api = WunderApi()
|
||||||
|
|
||||||
api = wunderpy2.WunderApi()
|
|
||||||
self._client = api.get_client(access_token, client_id)
|
self._client = api.get_client(access_token, client_id)
|
||||||
|
|
||||||
_LOGGER.debug("Instance created")
|
_LOGGER.debug("Instance created")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user