Move imports in tikteck component (#27568)
* move imports in tikteck component * fix: order of imports
This commit is contained in:
parent
25bec13335
commit
df646f5db1
1 changed files with 3 additions and 3 deletions
|
@ -1,17 +1,18 @@
|
||||||
"""Support for Tikteck lights."""
|
"""Support for Tikteck lights."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import tikteck
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_DEVICES, CONF_NAME, CONF_PASSWORD
|
|
||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
ATTR_BRIGHTNESS,
|
ATTR_BRIGHTNESS,
|
||||||
ATTR_HS_COLOR,
|
ATTR_HS_COLOR,
|
||||||
|
PLATFORM_SCHEMA,
|
||||||
SUPPORT_BRIGHTNESS,
|
SUPPORT_BRIGHTNESS,
|
||||||
SUPPORT_COLOR,
|
SUPPORT_COLOR,
|
||||||
Light,
|
Light,
|
||||||
PLATFORM_SCHEMA,
|
|
||||||
)
|
)
|
||||||
|
from homeassistant.const import CONF_DEVICES, CONF_NAME, CONF_PASSWORD
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
import homeassistant.util.color as color_util
|
import homeassistant.util.color as color_util
|
||||||
|
|
||||||
|
@ -48,7 +49,6 @@ class TikteckLight(Light):
|
||||||
|
|
||||||
def __init__(self, device):
|
def __init__(self, device):
|
||||||
"""Initialize the light."""
|
"""Initialize the light."""
|
||||||
import tikteck
|
|
||||||
|
|
||||||
self._name = device["name"]
|
self._name = device["name"]
|
||||||
self._address = device["address"]
|
self._address = device["address"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue