Clerify use case of async_added_to_hass (#255)

This commit is contained in:
Pascal Vizeli 2019-05-16 05:40:27 +02:00 committed by Paulus Schoutsen
parent 950ab7307d
commit e84638c9b5

View File

@ -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()`