From e84638c9b503e4e1e6c0df3099419cc4389f56eb Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 16 May 2019 05:40:27 +0200 Subject: [PATCH] Clerify use case of `async_added_to_hass` (#255) --- docs/entity_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/entity_index.md b/docs/entity_index.md index 86bafeb0..a1cb9349 100644 --- a/docs/entity_index.md +++ b/docs/entity_index.md @@ -91,7 +91,7 @@ Use these lifecycle hooks to execute code when certain events happen to the enti ### `async_added_to_hass()` -Called when an entity has their entity_id and hass object assigned, before it is written to the state machine for the first time. Example uses: restore the state or subscribe to updates. +Called when an entity has their entity_id and hass object assigned, before it is written to the state machine for the first time. Example uses: restore the state, subscribe to updates or set callback/dispatch function/listener. ### `async_will_remove_from_hass()`