mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
moved imports to top level (#27512)
This commit is contained in:
parent
28e3cf29b3
commit
6317ef1324
@ -1,6 +1,8 @@
|
|||||||
"""Support for BT Home Hub 5."""
|
"""Support for BT Home Hub 5."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import bthomehub5_devicelist
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
@ -32,7 +34,6 @@ class BTHomeHub5DeviceScanner(DeviceScanner):
|
|||||||
|
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
"""Initialise the scanner."""
|
"""Initialise the scanner."""
|
||||||
import bthomehub5_devicelist
|
|
||||||
|
|
||||||
_LOGGER.info("Initialising BT Home Hub 5")
|
_LOGGER.info("Initialising BT Home Hub 5")
|
||||||
self.host = config[CONF_HOST]
|
self.host = config[CONF_HOST]
|
||||||
@ -61,7 +62,6 @@ class BTHomeHub5DeviceScanner(DeviceScanner):
|
|||||||
|
|
||||||
def update_info(self):
|
def update_info(self):
|
||||||
"""Ensure the information from the BT Home Hub 5 is up to date."""
|
"""Ensure the information from the BT Home Hub 5 is up to date."""
|
||||||
import bthomehub5_devicelist
|
|
||||||
|
|
||||||
_LOGGER.info("Scanning")
|
_LOGGER.info("Scanning")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user