diff --git a/homeassistant/components/ubee/device_tracker.py b/homeassistant/components/ubee/device_tracker.py index 86b2e3c09af..6fe7e90f4c7 100644 --- a/homeassistant/components/ubee/device_tracker.py +++ b/homeassistant/components/ubee/device_tracker.py @@ -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")