Move imports to top for ubee (#29105)
This commit is contained in:
1 parent
03fe7cb347
commit
21ed87a773
1 file changed
+2
-2
@@ -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