From bb5c18f7be2e525ca38c0ed8c3b39bcf8ec58c83 Mon Sep 17 00:00:00 2001 From: zewelor Date: Sun, 7 Apr 2019 16:07:15 +0200 Subject: [PATCH] Use relative imports in yeelight (#22839) --- homeassistant/components/yeelight/binary_sensor.py | 2 +- homeassistant/components/yeelight/light.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/yeelight/binary_sensor.py b/homeassistant/components/yeelight/binary_sensor.py index cf7bbc5244e..d39af08f768 100644 --- a/homeassistant/components/yeelight/binary_sensor.py +++ b/homeassistant/components/yeelight/binary_sensor.py @@ -4,7 +4,7 @@ import logging from homeassistant.components.binary_sensor import BinarySensorDevice from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect -from homeassistant.components.yeelight import DATA_YEELIGHT, DATA_UPDATED +from . import DATA_YEELIGHT, DATA_UPDATED DEPENDENCIES = ['yeelight'] diff --git a/homeassistant/components/yeelight/light.py b/homeassistant/components/yeelight/light.py index 912a4f99c92..4840ad7381a 100644 --- a/homeassistant/components/yeelight/light.py +++ b/homeassistant/components/yeelight/light.py @@ -15,7 +15,7 @@ from homeassistant.components.light import ( SUPPORT_COLOR, SUPPORT_TRANSITION, SUPPORT_COLOR_TEMP, SUPPORT_FLASH, SUPPORT_EFFECT, Light) import homeassistant.util.color as color_util -from homeassistant.components.yeelight import ( +from . import ( CONF_TRANSITION, DATA_YEELIGHT, CONF_MODE_MUSIC, CONF_SAVE_ON_CHANGE, CONF_CUSTOM_EFFECTS, DATA_UPDATED, YEELIGHT_SERVICE_SCHEMA, DOMAIN, ATTR_TRANSITIONS,