mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Move imports in upcloud component to top-level (#27514)
* Move imports in upcloud component to top-level * Additional isort ordering
This commit is contained in:
parent
dbe366933f
commit
21ca936d33
@ -1,15 +1,16 @@
|
||||
"""Support for UpCloud."""
|
||||
import logging
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
import upcloud_api
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import (
|
||||
CONF_USERNAME,
|
||||
CONF_PASSWORD,
|
||||
CONF_SCAN_INTERVAL,
|
||||
STATE_ON,
|
||||
CONF_USERNAME,
|
||||
STATE_OFF,
|
||||
STATE_ON,
|
||||
STATE_PROBLEM,
|
||||
)
|
||||
from homeassistant.core import callback
|
||||
@ -60,8 +61,6 @@ CONFIG_SCHEMA = vol.Schema(
|
||||
|
||||
def setup(hass, config):
|
||||
"""Set up the UpCloud component."""
|
||||
import upcloud_api
|
||||
|
||||
conf = config[DOMAIN]
|
||||
username = conf.get(CONF_USERNAME)
|
||||
password = conf.get(CONF_PASSWORD)
|
||||
|
Loading…
x
Reference in New Issue
Block a user