From d211a29cae3d791a5774a97c1f048627ac42bd65 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Tue, 26 Nov 2019 00:39:44 +0100 Subject: [PATCH] Move imports to top for xfinity (#29077) --- homeassistant/components/xfinity/device_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/xfinity/device_tracker.py b/homeassistant/components/xfinity/device_tracker.py index 93603ae5797..712d31d46db 100644 --- a/homeassistant/components/xfinity/device_tracker.py +++ b/homeassistant/components/xfinity/device_tracker.py @@ -3,6 +3,7 @@ import logging from requests.exceptions import RequestException import voluptuous as vol +from xfinity_gateway import XfinityGateway import homeassistant.helpers.config_validation as cv from homeassistant.components.device_tracker import ( @@ -23,7 +24,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( def get_scanner(hass, config): """Validate the configuration and return an Xfinity Gateway scanner.""" - from xfinity_gateway import XfinityGateway gateway = XfinityGateway(config[DOMAIN][CONF_HOST]) scanner = None