mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57: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 logging
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
from starlingbank import StarlingAccount
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
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):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Sterling Bank sensor platform."""
|
"""Set up the Sterling Bank sensor platform."""
|
||||||
from starlingbank import StarlingAccount
|
|
||||||
|
|
||||||
sensors = []
|
sensors = []
|
||||||
for account in config[CONF_ACCOUNTS]:
|
for account in config[CONF_ACCOUNTS]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user