{% set tags = repository.releases.published_tags | sort(True) %}
{% set tags = tags + [repository.information.default_branch] %}

{% if repository.status.selected_tag %}
{% set selected_tag = repository.status.selected_tag %}
{% else %}
{% set selected_tag = repository.versions.available %}
{% endif %}
<td class="repository">
  <b>Available versions:</b>
</td>
<td class="repository">
  <form action="/hacsapi/{{ hacs.token }}/repository_select_tag" name="selected_tag" method="post"
    accept-ch