mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Move imports to top for skybell (#29475)
This commit is contained in:
parent
c6066d8b98
commit
653e0078a4
@ -1,10 +1,11 @@
|
||||
"""Support for the Skybell HD Doorbell."""
|
||||
import logging
|
||||
|
||||
from requests.exceptions import HTTPError, ConnectTimeout
|
||||
from requests.exceptions import ConnectTimeout, HTTPError
|
||||
from skybellpy import Skybell
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import ATTR_ATTRIBUTION, CONF_USERNAME, CONF_PASSWORD
|
||||
from homeassistant.const import ATTR_ATTRIBUTION, CONF_PASSWORD, CONF_USERNAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
@ -39,8 +40,6 @@ def setup(hass, config):
|
||||
password = conf.get(CONF_PASSWORD)
|
||||
|
||||
try:
|
||||
from skybellpy import Skybell
|
||||
|
||||
cache = hass.config.path(DEFAULT_CACHEDB)
|
||||
skybell = Skybell(
|
||||
username=username, password=password, get_devices=True, cache_path=cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user