Move imports to top for fints (#29429)

This commit is contained in:
springstan 2019-12-04 15:19:03 +01:00 committed by Franck Nijhof
parent c6ad57eb2b
commit 12791a687b

View File

@ -3,10 +3,13 @@
from collections import namedtuple from collections import namedtuple
from datetime import timedelta from datetime import timedelta
import logging import logging
from fints.client import FinTS3PinTanClient
from fints.dialog import FinTSDialogError
import voluptuous as vol import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_USERNAME, CONF_PIN, CONF_URL, CONF_NAME from homeassistant.const import CONF_NAME, CONF_PIN, CONF_URL, CONF_USERNAME
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity from homeassistant.helpers.entity import Entity
@ -118,7 +121,6 @@ class FinTsClient:
the client objects. If that ever changes, consider caching the client the client objects. If that ever changes, consider caching the client
object and also think about potential concurrency problems. object and also think about potential concurrency problems.
""" """
from fints.client import FinTS3PinTanClient
return FinTS3PinTanClient( return FinTS3PinTanClient(
self._credentials.blz, self._credentials.blz,
@ -129,7 +131,6 @@ class FinTsClient:
def detect_accounts(self): def detect_accounts(self):
"""Identify the accounts of the bank.""" """Identify the accounts of the bank."""
from fints.dialog import FinTSDialogError
balance_accounts = [] balance_accounts = []
holdings_accounts = [] holdings_accounts = []