picture cards: add person image support (#32733)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Quentame 2024-07-23 09:51:17 +02:00 committed by GitHub
parent f0abf38ba0
commit e5f1aef9e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 1 deletions

View File

@ -36,6 +36,10 @@ image:
required: true
description: The URL of an image.<br/>To use a locally hosted image, see [Hosting](/integrations/http#hosting-files).
type: string
image_entity:
required: false
description: Image or person entity to display.
type: string
camera_image:
required: false
description: A camera entity.

View File

@ -32,7 +32,7 @@ type:
type: string
entity:
required: true
description: "An `entity_id` used for the picture."
description: "A camera, image, or person `entity_id` used for the picture."
type: string
camera_image:
required: false

View File

@ -42,6 +42,10 @@ image:
required: false
description: Background image URL.
type: string
image_entity:
required: false
description: Image or person entity to display.
type: string
camera_image:
required: false
description: Camera entity as Background image.

View File

@ -34,6 +34,10 @@ image:
required: true
description: "The URL of an image. When you want to store images in your Home Assistant installation use the [hosting files documentation](/integrations/http/#hosting-files). After storing your files, use the `/local` path, for example, `/local/filename.jpg`."
type: string
image_entity:
required: false
description: Image or person entity to display.
type: string
alt_text:
required: false
description: Alternative text for the image. This is necessary for users of assistive technology. The [W3C images tutorial](https://www.w3.org/WAI/tutorials/images/) provides simple guidance for writing alternative text.