mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 00:36:49 +00:00
Update code_review_component.markdown
This commit is contained in:
parent
8a6ea019b4
commit
cf9c7cc55b
@ -37,4 +37,4 @@ REQUIREMENTS = [
|
||||
### {% linkable_title Component/platform communication %}
|
||||
|
||||
1. If you need to share global data with platforms, use the dictionary `hass.data`. `hass.data[DATA_XY]` while `XY` is the component is preferred over `hass.data[DOMAIN]`.
|
||||
2. If the component fetches data that causes related platform entities to update,
|
||||
2. If the component fetches data that causes it's related platform entities to update, you can notify them using the dispatcher code in `homeassistant.helpers.dispatcher`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user