diff --git a/src/panels/config/integrations/ha-integration-card.ts b/src/panels/config/integrations/ha-integration-card.ts
index dddeaf6754..a1625c7c2c 100644
--- a/src/panels/config/integrations/ha-integration-card.ts
+++ b/src/panels/config/integrations/ha-integration-card.ts
@@ -137,6 +137,7 @@ export class HaIntegrationCard extends LitElement {
private _renderSingleEntry(item: ConfigEntryExtended): TemplateResult {
const devices = this._getDevices(item);
+ const services = this._getServices(item);
const entities = this._getEntities(item);
return html`
@@ -168,7 +169,7 @@ export class HaIntegrationCard extends LitElement {
${devices.length
@@ -180,10 +181,22 @@ export class HaIntegrationCard extends LitElement {
"count",
devices.length
)}${services.length ? "," : ""}
+ `
+ : ""}
+ ${services.length
+ ? html`
+
${this.hass.localize(
+ "ui.panel.config.integrations.config_entry.services",
+ "count",
+ services.length
+ )}
`
: ""}
- ${devices.length && entities.length
+ ${(devices.length || services.length) && entities.length
? this.hass.localize("ui.common.and")
: ""}
${entities.length
@@ -304,8 +317,21 @@ export class HaIntegrationCard extends LitElement {
if (!this.deviceRegistryEntries) {
return [];
}
- return this.deviceRegistryEntries.filter((device) =>
- device.config_entries.includes(configEntry.entry_id)
+ return this.deviceRegistryEntries.filter(
+ (device) =>
+ device.config_entries.includes(configEntry.entry_id) &&
+ device.entry_type !== "service"
+ );
+ }
+
+ private _getServices(configEntry: ConfigEntry): DeviceRegistryEntry[] {
+ if (!this.deviceRegistryEntries) {
+ return [];
+ }
+ return this.deviceRegistryEntries.filter(
+ (device) =>
+ device.config_entries.includes(configEntry.entry_id) &&
+ device.entry_type === "service"
);
}
diff --git a/src/translations/en.json b/src/translations/en.json
index 9977bae247..8e4ced5344 100755
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -1638,6 +1638,7 @@
"config_entry": {
"devices": "{count} {count, plural,\n one {device}\n other {devices}\n}",
"entities": "{count} {count, plural,\n one {entity}\n other {entities}\n}",
+ "services": "{count} {count, plural,\n one {service}\n other {services}\n}",
"rename": "Rename",
"options": "Options",
"system_options": "System options",