From c69c493cf963c913a507c7bd0c02804cdb6e8e1e Mon Sep 17 00:00:00 2001 From: tkdrob Date: Tue, 9 Feb 2021 08:03:14 -0500 Subject: [PATCH] Use core constants for image_processing (#46269) --- homeassistant/components/image_processing/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/image_processing/__init__.py b/homeassistant/components/image_processing/__init__.py index 82672c22015..261278da401 100644 --- a/homeassistant/components/image_processing/__init__.py +++ b/homeassistant/components/image_processing/__init__.py @@ -5,7 +5,13 @@ import logging import voluptuous as vol -from homeassistant.const import ATTR_ENTITY_ID, ATTR_NAME, CONF_ENTITY_ID, CONF_NAME +from homeassistant.const import ( + ATTR_ENTITY_ID, + ATTR_NAME, + CONF_ENTITY_ID, + CONF_NAME, + CONF_SOURCE, +) from homeassistant.core import callback from homeassistant.exceptions import HomeAssistantError import homeassistant.helpers.config_validation as cv @@ -39,7 +45,6 @@ ATTR_GLASSES = "glasses" ATTR_MOTION = "motion" ATTR_TOTAL_FACES = "total_faces" -CONF_SOURCE = "source" CONF_CONFIDENCE = "confidence" DEFAULT_TIMEOUT = 10