mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Move imports to top for starlingbank (#29233)
This commit is contained in:
parent
04bad4bc74
commit
11331ad26e
@ -2,6 +2,7 @@
|
||||
import logging
|
||||
|
||||
import requests
|
||||
from starlingbank import StarlingAccount
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
@ -40,7 +41,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Set up the Sterling Bank sensor platform."""
|
||||
from starlingbank import StarlingAccount
|
||||
|
||||
sensors = []
|
||||
for account in config[CONF_ACCOUNTS]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user