
{%- if page.ha_config_flow and domain -%}
{% my config_flow_start badge domain=domain %}
{%- elsif page.ha_iot_standard == "zigbee" -%}
{%- if page.ha_brand -%}
{% my add_zigbee_device badge brand=domain %}
{%- elsif domain -%}
{% my add_zigbee_device badge domain=domain %}
{%- else -%}
{% my add_zigbee_device badge %}
{%- endif -%}
{%- elsif page.ha_iot_standard == "zwave" -%}
{%- if page.ha_brand -%}
{% my add_zwave_device badge brand=domain %}
{%- elsif domain -%}
{% my add_zwave_device badge domain=domain %}
{%- else -%}
{% my add_zwave_device badge %}
{%- endif -%}
{%- endif -%}
{%- if page.ha_brand -%}
The {{ page.title | default: page.name }} brand was introduced in Home Assistant {{ page.ha_release | default: "unknown" }}.
{%- else -%}
The {{ page.title | default: page.name }} {% if page.ha_integration_type == "virtual" %} virtual integration {% else %} {{ page.ha_integration_type | default: "integration" }} {% endif %} was introduced in Home Assistant {{ page.ha_release | default: "unknown" }}
{%- if page.ha_iot_standard or page.ha_integration_type == "entity" -%}
.
{%- else -%}
, and it's used by
{% if percentage < 1 %}
{{ active_installations }} active installations.
{% else %}
{{ percentage | remove: ".0" }}% of the active installations.
{% endif %}
{% endif %}
{% endif %}
{%- if page.ha_iot_class %}
{% if page.ha_iot_class == "Assumed State" %}
{%- endif -%}
{% if page.ha_iot_class == "Cloud Polling" %}
{%- endif -%}
{% if page.ha_iot_class == "Cloud Push" %}
{%- endif -%}
{% if page.ha_iot_class == "Local Polling" %}
{%- endif -%}
{% if page.ha_iot_class == "Local Push" %}
{%- endif -%}
Its IoT class is
{{ page.ha_iot_class }}.
{%- endif -%}
{%- if page.ha_quality_scale %}
{%- endif -%}
{% if page.works_with %}
{%- for type in page.works_with -%}
{%- endfor -%}
{%- endif -%}
{% if page.ha_domain %}
{%- endif -%}