From ee15f47a9ff58d6683e917b1f7239e8ea9fc9931 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sat, 9 Nov 2024 21:19:04 +0000 Subject: [PATCH] Some remarks --- docs/core/entity.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/core/entity.md b/docs/core/entity.md index 8c74a870..baa48302 100644 --- a/docs/core/entity.md +++ b/docs/core/entity.md @@ -121,13 +121,13 @@ The following properties are also available on entities. However, they are for a ## State attributes -Entities can provide additional state attributes besides the built-in ones, to provide further details to it's state. +Entities can provide additional state attributes besides the built-in ones, to provide further details to its state. This should be done by providing a dictionary with keys and values to the `extra_state_attributes` property. -Providing additional state attributes comes with some rules: +Providing state attributes comes with the following rules: - If an attribute is expected, it should be in the dictionary. Attributes should not "come and go". -- If an attribute is expected, but it's not providing a value right now, its value should be `None` and remain in the dictionary +- If an attribute is expected, but it's not providing a value right now, its value should be `None` and remain in the dictionary. - If an attributes is not expected, it should not be in the dictionary. As example, only some attributes might provide additional context to the state when the entity runs with a certain configuration. ## System properties