From 0a75a2c0806f2f83a64ea49e6a972cd777901098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 2 May 2019 20:11:37 +0300 Subject: [PATCH] Clean up redundant same-package ..package imports (#23587) --- homeassistant/components/greeneye_monitor/sensor.py | 2 +- homeassistant/components/huawei_lte/device_tracker.py | 2 +- homeassistant/components/huawei_lte/notify.py | 2 +- homeassistant/components/huawei_lte/sensor.py | 2 +- homeassistant/components/tplink_lte/notify.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/greeneye_monitor/sensor.py b/homeassistant/components/greeneye_monitor/sensor.py index ddfa5c1504b..499d5351ad4 100644 --- a/homeassistant/components/greeneye_monitor/sensor.py +++ b/homeassistant/components/greeneye_monitor/sensor.py @@ -4,7 +4,7 @@ import logging from homeassistant.const import CONF_NAME, CONF_TEMPERATURE_UNIT, POWER_WATT from homeassistant.helpers.entity import Entity -from ..greeneye_monitor import ( +from . import ( CONF_COUNTED_QUANTITY, CONF_COUNTED_QUANTITY_PER_PULSE, CONF_MONITOR_SERIAL_NUMBER, diff --git a/homeassistant/components/huawei_lte/device_tracker.py b/homeassistant/components/huawei_lte/device_tracker.py index d6c49f5e255..552bfb90703 100644 --- a/homeassistant/components/huawei_lte/device_tracker.py +++ b/homeassistant/components/huawei_lte/device_tracker.py @@ -9,7 +9,7 @@ from homeassistant.components.device_tracker import ( PLATFORM_SCHEMA, DeviceScanner, ) from homeassistant.const import CONF_URL -from ..huawei_lte import DATA_KEY, RouterData +from . import DATA_KEY, RouterData PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Optional(CONF_URL): cv.url, diff --git a/homeassistant/components/huawei_lte/notify.py b/homeassistant/components/huawei_lte/notify.py index 6394140c07f..2222c1333dd 100644 --- a/homeassistant/components/huawei_lte/notify.py +++ b/homeassistant/components/huawei_lte/notify.py @@ -9,7 +9,7 @@ from homeassistant.components.notify import ( from homeassistant.const import CONF_RECIPIENT, CONF_URL import homeassistant.helpers.config_validation as cv -from ..huawei_lte import DATA_KEY +from . import DATA_KEY _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/huawei_lte/sensor.py b/homeassistant/components/huawei_lte/sensor.py index 42bd1f16271..008e54e88a5 100644 --- a/homeassistant/components/huawei_lte/sensor.py +++ b/homeassistant/components/huawei_lte/sensor.py @@ -12,7 +12,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv -from ..huawei_lte import DATA_KEY, RouterData +from . import DATA_KEY, RouterData _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tplink_lte/notify.py b/homeassistant/components/tplink_lte/notify.py index a8844979e5e..8bcbf0cd2b2 100644 --- a/homeassistant/components/tplink_lte/notify.py +++ b/homeassistant/components/tplink_lte/notify.py @@ -7,7 +7,7 @@ from homeassistant.components.notify import ( ATTR_TARGET, BaseNotificationService) from homeassistant.const import CONF_RECIPIENT -from ..tplink_lte import DATA_KEY +from . import DATA_KEY _LOGGER = logging.getLogger(__name__)