From e75272d6d7e0f38cf15152c1f5bb12e32d64a2bc Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 25 Jan 2019 00:10:31 +0100 Subject: [PATCH] :ambulance: Do not show empty categories (#8268) --- source/components/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -%}