From 6742b36a3dff759635ff2530793ac0fed1291581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diefferson=20Koderer=20M=C3=B4ro?= Date: Mon, 21 Oct 2019 05:08:04 -0300 Subject: [PATCH] Move imports in lifx_legacy component (#28013) --- homeassistant/components/lifx_legacy/light.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/lifx_legacy/light.py b/homeassistant/components/lifx_legacy/light.py index 78a333018f9..8f767a2f559 100644 --- a/homeassistant/components/lifx_legacy/light.py +++ b/homeassistant/components/lifx_legacy/light.py @@ -9,6 +9,7 @@ https://home-assistant.io/components/light.lifx/ """ import logging +import liffylights import voluptuous as vol from homeassistant.components.light import ( @@ -16,19 +17,19 @@ from homeassistant.components.light import ( ATTR_COLOR_TEMP, ATTR_HS_COLOR, ATTR_TRANSITION, + PLATFORM_SCHEMA, SUPPORT_BRIGHTNESS, - SUPPORT_COLOR_TEMP, SUPPORT_COLOR, + SUPPORT_COLOR_TEMP, SUPPORT_TRANSITION, Light, - PLATFORM_SCHEMA, -) -from homeassistant.helpers.event import track_time_change -from homeassistant.util.color import ( - color_temperature_mired_to_kelvin, - color_temperature_kelvin_to_mired, ) import homeassistant.helpers.config_validation as cv +from homeassistant.helpers.event import track_time_change +from homeassistant.util.color import ( + color_temperature_kelvin_to_mired, + color_temperature_mired_to_kelvin, +) _LOGGER = logging.getLogger(__name__) @@ -71,8 +72,6 @@ class LIFX: def __init__(self, add_entities_callback, server_addr=None, broadcast_addr=None): """Initialize the light.""" - import liffylights - self._devices = [] self._add_entities_callback = add_entities_callback