diff --git a/source/components/index.html b/source/components/index.html
index d6d9ade957f..a55d60425b6 100644
--- a/source/components/index.html
+++ b/source/components/index.html
@@ -50,8 +50,9 @@ Support for these components is provided by the Home Assistant community.
Added in {{ added_two_ago_version }} ({{ two_ago_version_components_count }})
{%- for category in categories -%}
- {%- if category and category != 'Other' -%}
- {{ category }} ({{ components | where: 'ha_category', category | size }})
+ {%- assign components_count = components | where: 'ha_category', category | size -%}
+ {%- if category and category != 'Other' and components_count != 0 -%}
+ {{ category }} ({{ components_count }})
{%- endif -%}
{%- endfor -%}