From cf95bf89c35850133579b59b5e17165acd35ec05 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 15 Dec 2025 15:59:25 +0100 Subject: [PATCH] Use compute domain helper --- .../strategies/home/home-other-devices-view-strategy.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/panels/lovelace/strategies/home/home-other-devices-view-strategy.ts b/src/panels/lovelace/strategies/home/home-other-devices-view-strategy.ts index 673aa3c95f..7f23d96cad 100644 --- a/src/panels/lovelace/strategies/home/home-other-devices-view-strategy.ts +++ b/src/panels/lovelace/strategies/home/home-other-devices-view-strategy.ts @@ -1,6 +1,7 @@ import { ReactiveElement } from "lit"; import { customElement } from "lit/decorators"; import { computeDeviceName } from "../../../../common/entity/compute_device_name"; +import { computeDomain } from "../../../../common/entity/compute_domain"; import { getEntityContext } from "../../../../common/entity/context/get_entity_context"; import { findEntities, @@ -64,12 +65,12 @@ export class HomeOtherDevicesViewStrategy extends ReactiveElement { ); const helpersEntities = entitiesWithoutDevices.filter((entityId) => { - const domain = entityId.split(".")[0]; + const domain = computeDomain(entityId); return isHelperDomain(domain); }); const otherEntities = entitiesWithoutDevices.filter((entityId) => { - const domain = entityId.split(".")[0]; + const domain = computeDomain(entityId); return !isHelperDomain(domain); });