mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Move imports to top for vultr (#29200)
This commit is contained in:
parent
243e80459d
commit
25ad933d2d
@ -1,12 +1,13 @@
|
|||||||
"""Support for Vultr."""
|
"""Support for Vultr."""
|
||||||
import logging
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
import logging
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
from vultr import Vultr as VultrAPI
|
||||||
|
|
||||||
from homeassistant.const import CONF_API_KEY
|
from homeassistant.const import CONF_API_KEY
|
||||||
from homeassistant.util import Throttle
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
from homeassistant.util import Throttle
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -69,7 +70,6 @@ class Vultr:
|
|||||||
|
|
||||||
def __init__(self, api_key):
|
def __init__(self, api_key):
|
||||||
"""Initialize the Vultr connection."""
|
"""Initialize the Vultr connection."""
|
||||||
from vultr import Vultr as VultrAPI
|
|
||||||
|
|
||||||
self._api_key = api_key
|
self._api_key = api_key
|
||||||
self.data = None
|
self.data = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user