mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Move imports to top for luci (#29388)
This commit is contained in:
parent
695ec0c219
commit
49232332a1
@ -1,6 +1,7 @@
|
|||||||
"""Support for OpenWRT (luci) routers."""
|
"""Support for OpenWRT (luci) routers."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from openwrt_luci_rpc import OpenWrtRpc
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.device_tracker import (
|
from homeassistant.components.device_tracker import (
|
||||||
@ -45,7 +46,6 @@ class LuciDeviceScanner(DeviceScanner):
|
|||||||
|
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
"""Initialize the scanner."""
|
"""Initialize the scanner."""
|
||||||
from openwrt_luci_rpc import OpenWrtRpc
|
|
||||||
|
|
||||||
self.router = OpenWrtRpc(
|
self.router = OpenWrtRpc(
|
||||||
config[CONF_HOST],
|
config[CONF_HOST],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user