From 1b533f4350a71633a25b5f30c56564244313eb57 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 22 Oct 2024 08:04:12 +0200 Subject: [PATCH 1/2] Document display_precision property --- docs/core/entity/update.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/core/entity/update.md b/docs/core/entity/update.md index ecb7103a187..1b68287ddbb 100644 --- a/docs/core/entity/update.md +++ b/docs/core/entity/update.md @@ -24,6 +24,7 @@ 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. From 597e39107a543375cd969924672cc1bfefbf93dc Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 25 Oct 2024 16:59:11 +0200 Subject: [PATCH 2/2] Update update.md --- docs/core/entity/update.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/entity/update.md b/docs/core/entity/update.md index 1b68287ddbb..aeec724eaa5 100644 --- a/docs/core/entity/update.md +++ b/docs/core/entity/update.md @@ -31,7 +31,7 @@ Properties should always only return information from memory and not do I/O (lik | 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.