mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 08:05:06 +02:00
Move imports to top for ubee (#29105)
This commit is contained in:
committed by
Paulus Schoutsen
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")
|
||||
|
Reference in New Issue
Block a user