diff --git a/src/components/ha-filter-categories.ts b/src/components/ha-filter-categories.ts index 9b5a7c539e..0555d06388 100644 --- a/src/components/ha-filter-categories.ts +++ b/src/components/ha-filter-categories.ts @@ -78,13 +78,15 @@ export class HaFilterCategories extends SubscribeMixin(LitElement) { class="ha-scrollbar" activatable > - ${this.hass.localize( - "ui.panel.config.category.filter.show_all" - )} + ${this._categories.length > 0 + ? html`${this.hass.localize( + "ui.panel.config.category.filter.show_all" + )}` + : nothing} ${this._categories.map( (category) => html`