Move imports to top for iglo (#29424)

pull/29432/head
springstan 2019-12-04 14:07:36 +01:00 committed by Pascal Vizeli
parent 992d9273bb
commit 56b60577de
1 changed files with 5 additions and 5 deletions

View File

@ -2,6 +2,7 @@
import logging import logging
import math import math
from iglo import Lamp
import voluptuous as vol import voluptuous as vol
from homeassistant.components.light import ( from homeassistant.components.light import (
@ -9,11 +10,11 @@ from homeassistant.components.light import (
ATTR_COLOR_TEMP, ATTR_COLOR_TEMP,
ATTR_EFFECT, ATTR_EFFECT,
ATTR_HS_COLOR, ATTR_HS_COLOR,
SUPPORT_BRIGHTNESS,
SUPPORT_COLOR_TEMP,
SUPPORT_COLOR,
SUPPORT_EFFECT,
PLATFORM_SCHEMA, PLATFORM_SCHEMA,
SUPPORT_BRIGHTNESS,
SUPPORT_COLOR,
SUPPORT_COLOR_TEMP,
SUPPORT_EFFECT,
Light, Light,
) )
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT
@ -47,7 +48,6 @@ class IGloLamp(Light):
def __init__(self, name, host, port): def __init__(self, name, host, port):
"""Initialize the light.""" """Initialize the light."""
from iglo import Lamp
self._name = name self._name = name
self._lamp = Lamp(0, host, port) self._lamp = Lamp(0, host, port)