diff --git a/source/_includes/asides/component_navigation.html b/source/_includes/asides/component_navigation.html index 7c67fee83c2..de34932eff2 100644 --- a/source/_includes/asides/component_navigation.html +++ b/source/_includes/asides/component_navigation.html @@ -1,3 +1,4 @@ +{% assign percentage = 100.0 | times: site.data.analytics_data.integrations[page.ha_domain] | divided_by: site.data.analytics_data.reports_integrations | round: 1 %}
@@ -20,8 +21,13 @@
The {{ page.name | default: page.title }} integration was introduced in Home Assistant {{ page.ha_release | default: "unknown" }}, - and it's used by - {{ 100.0 | times: site.data.analytics_data.integrations[page.ha_domain] | divided_by: site.data.analytics_data.reports_integrations | round: 1 | remove: ".0" }}% of the active installations. + and it's used by + + {% if percentage < 1 %} + {{ site.data.analytics_data.integrations[page.ha_domain] }} active installations. + {% else %} + {{ percentage | remove: ".0" }}% of the active installations. + {% endif %} {%- if page.ha_iot_class %} Its IoT class is {{ page.ha_iot_class }}