diff --git a/src/panels/config/devices/device-detail/ha-device-entities-card.ts b/src/panels/config/devices/device-detail/ha-device-entities-card.ts index 33b293f1d2..b82d7e4dd0 100644 --- a/src/panels/config/devices/device-detail/ha-device-entities-card.ts +++ b/src/panels/config/devices/device-detail/ha-device-entities-card.ts @@ -72,7 +72,11 @@ export class HaDeviceEntitiesCard extends LitElement { class="show-more" @click=${this._toggleShowDisabled} > - +${disabledEntities.length} disabled entities + ${this.hass.localize( + "ui.panel.config.devices.entities.disabled_entities", + "count", + disabledEntities.length + )} ` : html` @@ -83,7 +87,9 @@ export class HaDeviceEntitiesCard extends LitElement { class="show-more" @click=${this._toggleShowDisabled} > - Hide disabled + ${this.hass.localize( + "ui.panel.config.devices.entities.hide_disabled" + )} ` : ""} diff --git a/src/translations/en.json b/src/translations/en.json index 0abbc5a1b5..b1414fcdd5 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1230,7 +1230,9 @@ "entities": { "entities": "Entities", "add_entities_lovelace": "Add to Lovelace", - "none": "This device has no entities" + "none": "This device has no entities", + "hide_disabled": "Hide disabled", + "disabled_entities": "+{count} {count, plural,\n one {disabled entity}\n other {disabled entities}\n}" }, "scripts": "Scripts", "scenes": "Scenes",