From 49232332a18ea2fb30bfa1d173885ca8c28fc087 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Wed, 4 Dec 2019 11:13:22 +0100 Subject: [PATCH] Move imports to top for luci (#29388) --- homeassistant/components/luci/device_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/luci/device_tracker.py b/homeassistant/components/luci/device_tracker.py index 59c3251a437..9d71b3d263a 100644 --- a/homeassistant/components/luci/device_tracker.py +++ b/homeassistant/components/luci/device_tracker.py @@ -1,6 +1,7 @@ """Support for OpenWRT (luci) routers.""" import logging +from openwrt_luci_rpc import OpenWrtRpc import voluptuous as vol from homeassistant.components.device_tracker import ( @@ -45,7 +46,6 @@ class LuciDeviceScanner(DeviceScanner): def __init__(self, config): """Initialize the scanner.""" - from openwrt_luci_rpc import OpenWrtRpc self.router = OpenWrtRpc( config[CONF_HOST],