From acaab3dbf8fe8cf56f66ae25d7c33d77188bae68 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 21 Nov 2017 09:09:39 -0800 Subject: [PATCH] Update code_review_platform.markdown --- source/developers/code_review_platform.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/developers/code_review_platform.markdown b/source/developers/code_review_platform.markdown index 0361d4bfc70..1475234123b 100644 --- a/source/developers/code_review_platform.markdown +++ b/source/developers/code_review_platform.markdown @@ -61,6 +61,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ 1. Extend entity from component, e.g. `class HueLight(Light)` 2. Do not call `update()` in constructor, use `add_devices(devices, True)` instead. 3. Do not do any I/O inside properties. Cache values inside `update()` instead. + 4. The state and/or attributes should not contain relative time since something happened. Instead it should store UTC timestamps. ### {% linkable_title 6. Communication with devices/services %}