From 3954ed3f304bc9d21bb9b2e224140f28ba7d9fc6 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 29 Dec 2022 15:28:25 +0100 Subject: [PATCH] Do not show analytics on integrations using an IoT standard (#25347) --- .../_includes/asides/component_navigation.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/source/_includes/asides/component_navigation.html b/source/_includes/asides/component_navigation.html index 2bd4e9ff98c..8994813de03 100644 --- a/source/_includes/asides/component_navigation.html +++ b/source/_includes/asides/component_navigation.html @@ -34,13 +34,17 @@ {%- 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 }} {{ page.ha_integration_type | default: "integration" }} was introduced in Home Assistant {{ page.ha_release | default: "unknown" }}, - and it's used by + The {{ page.title | default: page.name }} {{ page.ha_integration_type | default: "integration" }} was introduced in Home Assistant {{ page.ha_release | default: "unknown" }} - {% if percentage < 1 %} - {{ active_installations }} active installations. - {% else %} - {{ percentage | remove: ".0" }}% of the active installations. + {%- if page.ha_iot_standard -%} + . + {%- else -%} + , and it's used by + {% if percentage < 1 %} + {{ active_installations }} active installations. + {% else %} + {{ percentage | remove: ".0" }}% of the active installations. + {% endif %} {% endif %} {%- if page.ha_iot_class %}