Use relative imports in sensor (#62638)

pull/62646/head
epenet 2021-12-23 00:22:15 +01:00 committed by GitHub
parent bda1f02371
commit cd452552af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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