Document update entity's display_precision property (#2414)

* Document display_precision property

* Update update.md
This commit is contained in:
Erik Montnemery 2024-12-04 14:23:21 +01:00 committed by GitHub
parent 5c04d2085a
commit 529d1bc456
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,13 +24,14 @@ Properties should always only return information from memory and not do I/O (lik
| Name | Type | Default | Description
| ---- | ---- | ------- | -----------
| auto_update | bool | `False` | The device or service that the entity represents has auto update logic. When this is set to `True` you can not skip updates.
| display_precision | int | `0` | Number of decimal digits for display of update progress.
| in_progress | bool | `None` | Update installation progress. Should return a boolean (True if in progress, False if not).
| installed_version | str | `None` | The currently installed and used version of the software.
| latest_version | str | `None` | The latest version of the software available.
| release_summary | str | `None` | Summary of the release notes or changelog. This is not suitable for long changelogs but merely suitable for a short excerpt update description of max 255 characters.
| release_url | str | `None` | URL to the full release notes of the latest version available.
| title | str | `None` | Title of the software. This helps to differentiate between the device or entity name versus the title of the software installed.
| update_percentage | int | `None` | Update installation progress. Can either return a number to indicate the progress from 0 to 100% or None.
| update_percentage | int, float | `None` | Update installation progress. Can either return a number to indicate the progress from 0 to 100% or None.
Other properties that are common to all entities such as `device_class`, `entity_category`, `icon`, `name` etc are still applicable.