Update code_review_component.markdown
This commit is contained in:
parent
8a6ea019b4
commit
cf9c7cc55b
1 changed files with 1 additions and 1 deletions
|
@ -37,4 +37,4 @@ REQUIREMENTS = [
|
||||||
### {% linkable_title Component/platform communication %}
|
### {% 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]`.
|
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…
Add table
Add a link
Reference in a new issue