mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move imports to top for n26 (#29357)
This commit is contained in:
parent
01bc1e4c66
commit
b462c539eb
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user