From cd452552af1f69d3ae8adaf018fb6882cc2c791c Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 23 Dec 2021 00:22:15 +0100 Subject: [PATCH] Use relative imports in sensor (#62638) --- homeassistant/components/sensor/device_condition.py | 3 +-- homeassistant/components/sensor/device_trigger.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/sensor/device_condition.py b/homeassistant/components/sensor/device_condition.py index 32fa06eb507..7ba3e907c60 100644 --- a/homeassistant/components/sensor/device_condition.py +++ b/homeassistant/components/sensor/device_condition.py @@ -6,7 +6,6 @@ import voluptuous as vol from homeassistant.components.device_automation.exceptions import ( InvalidDeviceAutomationConfig, ) -from homeassistant.components.sensor import SensorDeviceClass from homeassistant.const import CONF_ABOVE, CONF_BELOW, CONF_ENTITY_ID, CONF_TYPE from homeassistant.core import HomeAssistant, HomeAssistantError, callback from homeassistant.helpers import condition, config_validation as cv @@ -17,7 +16,7 @@ from homeassistant.helpers.entity_registry import ( ) from homeassistant.helpers.typing import ConfigType -from . import DOMAIN +from . import DOMAIN, SensorDeviceClass # mypy: allow-untyped-defs, no-check-untyped-defs diff --git a/homeassistant/components/sensor/device_trigger.py b/homeassistant/components/sensor/device_trigger.py index e605ed3b797..1970e8df65b 100644 --- a/homeassistant/components/sensor/device_trigger.py +++ b/homeassistant/components/sensor/device_trigger.py @@ -8,7 +8,6 @@ from homeassistant.components.device_automation.exceptions import ( from homeassistant.components.homeassistant.triggers import ( numeric_state as numeric_state_trigger, ) -from homeassistant.components.sensor import SensorDeviceClass from homeassistant.const import ( CONF_ABOVE, CONF_BELOW, @@ -21,7 +20,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.helpers.entity import get_device_class, get_unit_of_measurement from homeassistant.helpers.entity_registry import async_entries_for_device -from . import DOMAIN +from . import DOMAIN, SensorDeviceClass # mypy: allow-untyped-defs, no-check-untyped-defs