mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-14 04:46:29 +00:00
Clerify use case of async_added_to_hass
(#255)
This commit is contained in:
parent
950ab7307d
commit
e84638c9b5
@ -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()`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user