moved imports to top level (#27632)
This commit is contained in:
parent
3c280565fa
commit
14e3b3af6f
1 changed files with 2 additions and 2 deletions
|
@ -1,15 +1,16 @@
|
||||||
"""Support for BT Smart Hub (Sometimes referred to as BT Home Hub 6)."""
|
"""Support for BT Smart Hub (Sometimes referred to as BT Home Hub 6)."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import btsmarthub_devicelist
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.components.device_tracker import (
|
from homeassistant.components.device_tracker import (
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
DeviceScanner,
|
DeviceScanner,
|
||||||
)
|
)
|
||||||
from homeassistant.const import CONF_HOST
|
from homeassistant.const import CONF_HOST
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -74,7 +75,6 @@ class BTSmartHubScanner(DeviceScanner):
|
||||||
|
|
||||||
def get_bt_smarthub_data(self):
|
def get_bt_smarthub_data(self):
|
||||||
"""Retrieve data from BT Smart Hub and return parsed result."""
|
"""Retrieve data from BT Smart Hub and return parsed result."""
|
||||||
import btsmarthub_devicelist
|
|
||||||
|
|
||||||
# Request data from bt smarthub into a list of dicts.
|
# Request data from bt smarthub into a list of dicts.
|
||||||
data = btsmarthub_devicelist.get_devicelist(
|
data = btsmarthub_devicelist.get_devicelist(
|
||||||
|
|
Loading…
Add table
Reference in a new issue