Use relative imports inside integrations (#22235)
* Use relative imports inside integrations * Lint * Fix automation tests * Fix scene imports
This commit is contained in:
1 parent
ab17b22239
commit
4b1de61110
522 files changed
+1834
-1725
No files matched your search
@@ -1,19 +1,16 @@
|
||||
"""Support for IKEA Tradfri lights."""
|
||||
import logging
|
||||
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_HS_COLOR, ATTR_TRANSITION,
|
||||
SUPPORT_BRIGHTNESS, SUPPORT_TRANSITION, SUPPORT_COLOR_TEMP,
|
||||
SUPPORT_COLOR, Light)
|
||||
from homeassistant.components.light import \
|
||||
PLATFORM_SCHEMA as LIGHT_PLATFORM_SCHEMA
|
||||
from homeassistant.components.tradfri import (
|
||||
KEY_GATEWAY, KEY_API, DOMAIN as TRADFRI_DOMAIN)
|
||||
from homeassistant.components.tradfri.const import (
|
||||
CONF_IMPORT_GROUPS, CONF_GATEWAY_ID)
|
||||
PLATFORM_SCHEMA as LIGHT_PLATFORM_SCHEMA, SUPPORT_BRIGHTNESS,
|
||||
SUPPORT_COLOR, SUPPORT_COLOR_TEMP, SUPPORT_TRANSITION, Light)
|
||||
from homeassistant.core import callback
|
||||
import homeassistant.util.color as color_util
|
||||
|
||||
from . import DOMAIN as TRADFRI_DOMAIN, KEY_API, KEY_GATEWAY
|
||||
from .const import CONF_GATEWAY_ID, CONF_IMPORT_GROUPS
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
ATTR_DIMMER = 'dimmer'
|
||||
|
||||
Reference in new issue
Block a user