Move imports to top for n26 (#29357)

This commit is contained in:
springstan authored and Paulus Schoutsen committed 2019-12-03 15:46:07 -08:00
1 parent 01bc1e4c66
commit b462c539eb
1 file changed
+2 -4
+2 -4
View File
@@ -2,9 +2,9 @@
from datetime import datetime, timedelta, timezone
import logging
import voluptuous as vol
from n26 import api as n26_api, config as n26_config
from requests import HTTPError
import voluptuous as vol
from homeassistant.const import CONF_PASSWORD, CONF_SCAN_INTERVAL, CONF_USERNAME
import homeassistant.helpers.config_validation as cv
@@ -51,8 +51,6 @@ def setup(hass, config):
api = n26_api.Api(n26_config.Config(user, password))
from requests import HTTPError
try:
api.get_token()
except HTTPError as err: