From 2b33c70e0438e6aab7d31a73ac4584bcf5f87d34 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 17 Sep 2024 03:37:45 -0400 Subject: [PATCH] Ensure device info categories notify, event and assist always show (#21994) Currently we have the entity category always win. However, we have some functional categories on a device, notify, event, assist. It would be good to always show these togehter. --- src/panels/config/devices/ha-config-device-page.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/panels/config/devices/ha-config-device-page.ts b/src/panels/config/devices/ha-config-device-page.ts index 386fb4f3bd..60bc1c78bf 100644 --- a/src/panels/config/devices/ha-config-device-page.ts +++ b/src/panels/config/devices/ha-config-device-page.ts @@ -189,20 +189,20 @@ export class HaConfigDevicePage extends LitElement { const result = groupBy(entities, (entry) => { const domain = computeDomain(entry.entity_id); - if (entry.entity_category) { - return entry.entity_category; + if (ASSIST_ENTITIES.includes(domain)) { + return "assist"; } if (domain === "event" || domain === "notify") { return domain; } - if (SENSOR_ENTITIES.includes(domain)) { - return "sensor"; + if (entry.entity_category) { + return entry.entity_category; } - if (ASSIST_ENTITIES.includes(domain)) { - return "assist"; + if (SENSOR_ENTITIES.includes(domain)) { + return "sensor"; } return "control";