mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-19 15:26:29 +00:00
Align documented image attributes with implementation (#1922)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
1958a68c21
commit
6dc1130eb3
@ -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.
|
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 |
|
| Name | Type | Default | Description |
|
||||||
| ------------------------ | --------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
|
| -------------------| --------------------------------- | ------------ | -------------------------------------------------------------------------------------------------------- |
|
||||||
| content_type | str | `image/jpeg` | The content-type of the image, set automatically if the image entity provides a URL. |
|
| 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_last_updated | <code>datetime.datetime | None</code> | `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. |
|
| image_url | <code>str | None</code> | `UNDEFINED` | Optional URL from where the image should be fetched. |
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user