Import `image_processing` constants from `const` (#63461)
parent
b168a8c7d0
commit
dfa94d6ce1
|
@ -5,13 +5,8 @@ import io
|
||||||
|
|
||||||
import face_recognition # pylint: disable=import-error
|
import face_recognition # pylint: disable=import-error
|
||||||
|
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import ImageProcessingFaceEntity
|
||||||
CONF_ENTITY_ID,
|
from homeassistant.const import ATTR_LOCATION, CONF_ENTITY_ID, CONF_NAME, CONF_SOURCE
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
ImageProcessingFaceEntity,
|
|
||||||
)
|
|
||||||
from homeassistant.const import ATTR_LOCATION
|
|
||||||
from homeassistant.core import HomeAssistant, split_entity_id
|
from homeassistant.core import HomeAssistant, split_entity_id
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
|
|
|
@ -10,13 +10,10 @@ import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import (
|
||||||
CONF_CONFIDENCE,
|
CONF_CONFIDENCE,
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
ImageProcessingFaceEntity,
|
ImageProcessingFaceEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.const import ATTR_NAME
|
from homeassistant.const import ATTR_NAME, CONF_ENTITY_ID, CONF_NAME, CONF_SOURCE
|
||||||
from homeassistant.core import HomeAssistant, split_entity_id
|
from homeassistant.core import HomeAssistant, split_entity_id
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
|
@ -12,13 +12,17 @@ import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import (
|
||||||
CONF_CONFIDENCE,
|
CONF_CONFIDENCE,
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
ImageProcessingEntity,
|
ImageProcessingEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.const import CONF_COVERS, CONF_TIMEOUT, CONF_URL
|
from homeassistant.const import (
|
||||||
|
CONF_COVERS,
|
||||||
|
CONF_ENTITY_ID,
|
||||||
|
CONF_NAME,
|
||||||
|
CONF_SOURCE,
|
||||||
|
CONF_TIMEOUT,
|
||||||
|
CONF_URL,
|
||||||
|
)
|
||||||
from homeassistant.core import HomeAssistant, split_entity_id
|
from homeassistant.core import HomeAssistant, split_entity_id
|
||||||
from homeassistant.helpers import template
|
from homeassistant.helpers import template
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
|
@ -10,9 +10,6 @@ import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import (
|
||||||
ATTR_CONFIDENCE,
|
ATTR_CONFIDENCE,
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
ImageProcessingFaceEntity,
|
ImageProcessingFaceEntity,
|
||||||
)
|
)
|
||||||
|
@ -20,9 +17,12 @@ from homeassistant.const import (
|
||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
ATTR_ID,
|
ATTR_ID,
|
||||||
ATTR_NAME,
|
ATTR_NAME,
|
||||||
|
CONF_ENTITY_ID,
|
||||||
CONF_IP_ADDRESS,
|
CONF_IP_ADDRESS,
|
||||||
|
CONF_NAME,
|
||||||
CONF_PASSWORD,
|
CONF_PASSWORD,
|
||||||
CONF_PORT,
|
CONF_PORT,
|
||||||
|
CONF_SOURCE,
|
||||||
CONF_USERNAME,
|
CONF_USERNAME,
|
||||||
)
|
)
|
||||||
from homeassistant.core import HomeAssistant, ServiceCall, split_entity_id
|
from homeassistant.core import HomeAssistant, ServiceCall, split_entity_id
|
||||||
|
|
|
@ -9,13 +9,11 @@ from homeassistant.components.image_processing import (
|
||||||
ATTR_AGE,
|
ATTR_AGE,
|
||||||
ATTR_GENDER,
|
ATTR_GENDER,
|
||||||
ATTR_GLASSES,
|
ATTR_GLASSES,
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
ImageProcessingFaceEntity,
|
ImageProcessingFaceEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.components.microsoft_face import DATA_MICROSOFT_FACE
|
from homeassistant.components.microsoft_face import DATA_MICROSOFT_FACE
|
||||||
|
from homeassistant.const import CONF_ENTITY_ID, CONF_NAME, CONF_SOURCE
|
||||||
from homeassistant.core import HomeAssistant, split_entity_id
|
from homeassistant.core import HomeAssistant, split_entity_id
|
||||||
from homeassistant.exceptions import HomeAssistantError
|
from homeassistant.exceptions import HomeAssistantError
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
|
@ -8,14 +8,11 @@ import voluptuous as vol
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import (
|
||||||
ATTR_CONFIDENCE,
|
ATTR_CONFIDENCE,
|
||||||
CONF_CONFIDENCE,
|
CONF_CONFIDENCE,
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
ImageProcessingFaceEntity,
|
ImageProcessingFaceEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.components.microsoft_face import DATA_MICROSOFT_FACE
|
from homeassistant.components.microsoft_face import DATA_MICROSOFT_FACE
|
||||||
from homeassistant.const import ATTR_NAME
|
from homeassistant.const import ATTR_NAME, CONF_ENTITY_ID, CONF_NAME, CONF_SOURCE
|
||||||
from homeassistant.core import HomeAssistant, split_entity_id
|
from homeassistant.core import HomeAssistant, split_entity_id
|
||||||
from homeassistant.exceptions import HomeAssistantError
|
from homeassistant.exceptions import HomeAssistantError
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
|
@ -10,17 +10,17 @@ import aiohttp
|
||||||
import async_timeout
|
import async_timeout
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import CONF_CONFIDENCE, PLATFORM_SCHEMA
|
||||||
CONF_CONFIDENCE,
|
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
PLATFORM_SCHEMA,
|
|
||||||
)
|
|
||||||
from homeassistant.components.openalpr_local.image_processing import (
|
from homeassistant.components.openalpr_local.image_processing import (
|
||||||
ImageProcessingAlprEntity,
|
ImageProcessingAlprEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.const import CONF_API_KEY, CONF_REGION
|
from homeassistant.const import (
|
||||||
|
CONF_API_KEY,
|
||||||
|
CONF_ENTITY_ID,
|
||||||
|
CONF_NAME,
|
||||||
|
CONF_REGION,
|
||||||
|
CONF_SOURCE,
|
||||||
|
)
|
||||||
from homeassistant.core import HomeAssistant, split_entity_id
|
from homeassistant.core import HomeAssistant, split_entity_id
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
|
@ -9,15 +9,17 @@ import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import (
|
||||||
ATTR_CONFIDENCE,
|
ATTR_CONFIDENCE,
|
||||||
ATTR_ENTITY_ID,
|
|
||||||
CONF_CONFIDENCE,
|
CONF_CONFIDENCE,
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
ImageProcessingEntity,
|
ImageProcessingEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.const import CONF_REGION
|
from homeassistant.const import (
|
||||||
|
ATTR_ENTITY_ID,
|
||||||
|
CONF_ENTITY_ID,
|
||||||
|
CONF_NAME,
|
||||||
|
CONF_REGION,
|
||||||
|
CONF_SOURCE,
|
||||||
|
)
|
||||||
from homeassistant.core import HomeAssistant, callback, split_entity_id
|
from homeassistant.core import HomeAssistant, callback, split_entity_id
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
|
@ -9,12 +9,10 @@ import requests
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import (
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
ImageProcessingEntity,
|
ImageProcessingEntity,
|
||||||
)
|
)
|
||||||
|
from homeassistant.const import CONF_ENTITY_ID, CONF_NAME, CONF_SOURCE
|
||||||
from homeassistant.core import HomeAssistant, split_entity_id
|
from homeassistant.core import HomeAssistant, split_entity_id
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
|
@ -6,12 +6,8 @@ import io
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from pyzbar import pyzbar
|
from pyzbar import pyzbar
|
||||||
|
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import ImageProcessingEntity
|
||||||
CONF_ENTITY_ID,
|
from homeassistant.const import CONF_ENTITY_ID, CONF_NAME, CONF_SOURCE
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
ImageProcessingEntity,
|
|
||||||
)
|
|
||||||
from homeassistant.core import HomeAssistant, split_entity_id
|
from homeassistant.core import HomeAssistant, split_entity_id
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
|
|
|
@ -10,12 +10,10 @@ from PIL import Image
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import (
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
ImageProcessingEntity,
|
ImageProcessingEntity,
|
||||||
)
|
)
|
||||||
|
from homeassistant.const import CONF_ENTITY_ID, CONF_NAME, CONF_SOURCE
|
||||||
from homeassistant.core import HomeAssistant, split_entity_id
|
from homeassistant.core import HomeAssistant, split_entity_id
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
|
@ -10,13 +10,16 @@ import simplehound.core as hound
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import (
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
ImageProcessingEntity,
|
ImageProcessingEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.const import ATTR_ENTITY_ID, CONF_API_KEY
|
from homeassistant.const import (
|
||||||
|
ATTR_ENTITY_ID,
|
||||||
|
CONF_API_KEY,
|
||||||
|
CONF_ENTITY_ID,
|
||||||
|
CONF_NAME,
|
||||||
|
CONF_SOURCE,
|
||||||
|
)
|
||||||
from homeassistant.core import HomeAssistant, split_entity_id
|
from homeassistant.core import HomeAssistant, split_entity_id
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
|
@ -14,13 +14,15 @@ import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.image_processing import (
|
from homeassistant.components.image_processing import (
|
||||||
CONF_CONFIDENCE,
|
CONF_CONFIDENCE,
|
||||||
CONF_ENTITY_ID,
|
|
||||||
CONF_NAME,
|
|
||||||
CONF_SOURCE,
|
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
ImageProcessingEntity,
|
ImageProcessingEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.const import EVENT_HOMEASSISTANT_START
|
from homeassistant.const import (
|
||||||
|
CONF_ENTITY_ID,
|
||||||
|
CONF_NAME,
|
||||||
|
CONF_SOURCE,
|
||||||
|
EVENT_HOMEASSISTANT_START,
|
||||||
|
)
|
||||||
from homeassistant.core import HomeAssistant, split_entity_id
|
from homeassistant.core import HomeAssistant, split_entity_id
|
||||||
from homeassistant.helpers import template
|
from homeassistant.helpers import template
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
Loading…
Reference in New Issue