From 6317ef13245602238d07d570f4fe23bb6f69f82d Mon Sep 17 00:00:00 2001 From: bouni Date: Sat, 12 Oct 2019 21:44:47 +0200 Subject: [PATCH] moved imports to top level (#27512) --- homeassistant/components/bt_home_hub_5/device_tracker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/bt_home_hub_5/device_tracker.py b/homeassistant/components/bt_home_hub_5/device_tracker.py index 0a068a3981f..20ad909c44e 100644 --- a/homeassistant/components/bt_home_hub_5/device_tracker.py +++ b/homeassistant/components/bt_home_hub_5/device_tracker.py @@ -1,6 +1,8 @@ """Support for BT Home Hub 5.""" import logging +import bthomehub5_devicelist + import voluptuous as vol import homeassistant.helpers.config_validation as cv @@ -32,7 +34,6 @@ class BTHomeHub5DeviceScanner(DeviceScanner): def __init__(self, config): """Initialise the scanner.""" - import bthomehub5_devicelist _LOGGER.info("Initialising BT Home Hub 5") self.host = config[CONF_HOST] @@ -61,7 +62,6 @@ class BTHomeHub5DeviceScanner(DeviceScanner): def update_info(self): """Ensure the information from the BT Home Hub 5 is up to date.""" - import bthomehub5_devicelist _LOGGER.info("Scanning")