Site updated at 2017-07-29 06:54:10 UTC

This commit is contained in:
Travis CI 2017-07-29 06:54:10 +00:00
parent 06842a08a1
commit 453538c1f1
27 changed files with 58 additions and 53 deletions

View file

@ -102,7 +102,7 @@
<h3><a class="title-link" name="componentplatform-communication" href="#componentplatform-communication"></a> Component/platform communication</h3>
<ol>
<li>If you need to share global data with platforms, use the dictionary <code class="highlighter-rouge">hass.data</code>. <code class="highlighter-rouge">hass.data[DATA_XY]</code> while <code class="highlighter-rouge">XY</code> is the component is preferred over <code class="highlighter-rouge">hass.data[DOMAIN]</code>.</li>
<li>If the component fetches data that causes related platform entities to update,</li>
<li>If the component fetches data that causes its related platform entities to update, you can notify them using the dispatcher code in <code class="highlighter-rouge">homeassistant.helpers.dispatcher</code>.</li>
</ol>
</article>
</div>