Move imports to top for fints (#29429)
parent
c6ad57eb2b
commit
12791a687b
|
@ -3,10 +3,13 @@
|
|||
from collections import namedtuple
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
from fints.client import FinTS3PinTanClient
|
||||
from fints.dialog import FinTSDialogError
|
||||
import voluptuous as vol
|
||||
|
||||
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
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
|
@ -118,7 +121,6 @@ class FinTsClient:
|
|||
the client objects. If that ever changes, consider caching the client
|
||||
object and also think about potential concurrency problems.
|
||||
"""
|
||||
from fints.client import FinTS3PinTanClient
|
||||
|
||||
return FinTS3PinTanClient(
|
||||
self._credentials.blz,
|
||||
|
@ -129,7 +131,6 @@ class FinTsClient:
|
|||
|
||||
def detect_accounts(self):
|
||||
"""Identify the accounts of the bank."""
|
||||
from fints.dialog import FinTSDialogError
|
||||
|
||||
balance_accounts = []
|
||||
holdings_accounts = []
|
||||
|
|
Loading…
Reference in New Issue