Move imports to top for owlet (#29352)
This commit is contained in:
parent
4f8200d15a
commit
b1b784484e
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
"""Support for Owlet baby monitors."""
|
||||
import logging
|
||||
|
||||
from pyowlet.PyOwlet import PyOwlet
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import CONF_NAME, CONF_PASSWORD, CONF_USERNAME
|
||||
|
@ -41,7 +42,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
|
||||
def setup(hass, config):
|
||||
"""Set up owlet component."""
|
||||
from pyowlet.PyOwlet import PyOwlet
|
||||
|
||||
username = config[DOMAIN][CONF_USERNAME]
|
||||
password = config[DOMAIN][CONF_PASSWORD]
|
||||
|
|
Loading…
Add table
Reference in a new issue