Skip to content
5 changes: 5 additions & 0 deletions homeassistant/components/image_processing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
ATTR_FACES = "faces"
ATTR_GENDER = "gender"
ATTR_GLASSES = "glasses"
ATTR_HAIR = "hair"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, these should not be added to default integration. Add to microsoft integration instead.

ATTR_SMILE = "smile"
ATTR_FACIALHAIR = "facialhair"
ATTR_EMOTION = "emotion"
ATTR_ACCESSORIES = "accessories"
ATTR_MOTION = "motion"
ATTR_TOTAL_FACES = "total_faces"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
import voluptuous as vol

from homeassistant.components.image_processing import (
ATTR_ACCESSORIES,
ATTR_AGE,
ATTR_EMOTION,
ATTR_FACIALHAIR,
ATTR_GENDER,
ATTR_GLASSES,
ATTR_HAIR,
ATTR_SMILE,
CONF_ENTITY_ID,
CONF_NAME,
CONF_SOURCE,
Expand All @@ -20,7 +25,16 @@

_LOGGER = logging.getLogger(__name__)

SUPPORTED_ATTRIBUTES = [ATTR_AGE, ATTR_GENDER, ATTR_GLASSES]
SUPPORTED_ATTRIBUTES = [
ATTR_AGE,
ATTR_GENDER,
ATTR_GLASSES,
ATTR_HAIR,
ATTR_SMILE,
ATTR_FACIALHAIR,
ATTR_EMOTION,
ATTR_ACCESSORIES,
]

CONF_ATTRIBUTES = "attributes"
DEFAULT_ATTRIBUTES = [ATTR_AGE, ATTR_GENDER]
Expand Down