Skip to content

Commit acaab3d

Browse files
authored
Update code_review_platform.markdown
1 parent bc712e0 commit acaab3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/developers/code_review_platform.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
6161
1. Extend entity from component, e.g. `class HueLight(Light)`
6262
2. Do not call `update()` in constructor, use `add_devices(devices, True)` instead.
6363
3. Do not do any I/O inside properties. Cache values inside `update()` instead.
64+
4. The state and/or attributes should not contain relative time since something happened. Instead it should store UTC timestamps.
6465

6566
### {% linkable_title 6. Communication with devices/services %}
6667

0 commit comments

Comments
 (0)