You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/entity.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,13 +121,13 @@ The following properties are also available on entities. However, they are for a
121
121
122
122
## State attributes
123
123
124
-
Entities can provide additional state attributes besides the built-in ones, to provide further details to it's state.
124
+
Entities can provide additional state attributes besides the built-in ones, to provide further details to its state.
125
125
This should be done by providing a dictionary with keys and values to the `extra_state_attributes` property.
126
126
127
-
Providing additional state attributes comes with some rules:
127
+
Providing state attributes comes with the following rules:
128
128
129
129
- If an attribute is expected, it should be in the dictionary. Attributes should not "come and go".
130
-
- If an attribute is expected, but it's not providing a value right now, its value should be `None` and remain in the dictionary
130
+
- If an attribute is expected, but it's not providing a value right now, its value should be `None` and remain in the dictionary.
131
131
- 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.
0 commit comments