From 6dc1130eb3b037006ed3c38a1272a2c7666ddd31 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 19 Sep 2023 18:20:51 +0200 Subject: [PATCH] Align documented image attributes with implementation (#1922) Co-authored-by: Martin Hjelmare Co-authored-by: Franck Nijhof --- docs/core/entity/image.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/core/entity/image.md b/docs/core/entity/image.md index bd801a9a..61fb8e4d 100644 --- a/docs/core/entity/image.md +++ b/docs/core/entity/image.md @@ -15,11 +15,11 @@ An implementation can provide either a URL from where an image will automaticall Properties should always only return information from memory and not do I/O (like network requests). Implement `update()` or `async_update()` to fetch data. ::: -| Name | Type | Default | Description | -| ------------------------ | --------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------- | -| content_type | str | `image/jpeg` | The content-type of the image, set automatically if the image entity provides a URL. | -| image_last_updated | datetime | `None` | Timestamp of when the image was last updated. Used to determine `state`. Frontend will refetch the image when this changes. | -| image_url | str or None | `UNDEFINED` | Optional URL from where the image should be fetched. | +| Name | Type | Default | Description | +| -------------------| --------------------------------- | ------------ | -------------------------------------------------------------------------------------------------------- | +| content_type | str | `image/jpeg` | The content-type of the image, set automatically if the image entity provides a URL. | +| image_last_updated | datetime.datetime | None | `None` | Timestamp of when the image was last updated. Used to determine `state`. Frontend will refetch the image when this changes. | +| image_url | str | None | `UNDEFINED` | Optional URL from where the image should be fetched. | ## Methods