mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Move imports to top for ubee (#29105)
This commit is contained in:
parent
03fe7cb347
commit
21ed87a773
@ -1,6 +1,8 @@
|
||||
"""Support for Ubee router."""
|
||||
|
||||
import logging
|
||||
|
||||
from pyubee import Ubee
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.device_tracker import (
|
||||
@ -36,8 +38,6 @@ def get_scanner(hass, config):
|
||||
password = info[CONF_PASSWORD]
|
||||
model = info[CONF_MODEL]
|
||||
|
||||
from pyubee import Ubee
|
||||
|
||||
ubee = Ubee(host, username, password, model)
|
||||
if not ubee.login():
|
||||
_LOGGER.error("Login failed")
|
||||
|
Loading…
x
Reference in New Issue
Block a user