---
layout: default
is_post: true
---

<article class="post">
  {% assign post = page %}
  {% include blog/post/article.html %}
</article>

<div id='post-comments'></div>

{% if site.disqus_short_name and post.date < site.disqus_end_date and page.comments == true %}
<section id="disqus">
  <h3 class="indent title">Comments</h3>
  <div id="disqus_thread" aria-live="polite">{% include blog/post/disqus_thread.html %}</div>
</section>

{% include javascripts/disqus.html %}
{% endif %}

{% if page.comments == true and post.date > site.disqus_end_date %}
<div id='discourse-comments'></div>

<script type="text/javascript">
  DiscourseEmbed = { discourseUrl: 'https://community.home-assistant.io/',
                     discourseEmbedUrl: '{{ page.url | canonical_url }}' };

  (function() {
    var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
    d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
  })();
</script>
{% endif %}