From bedf7fe7e2752187dc0d619563b79ae2fcdeec44 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 23 Apr 2026 15:06:48 +0000 Subject: [PATCH 1/2] Add radio_frequency domain entity platform Treat radio_frequency the same as infrared across entity state handling, icons, and scene filtering so it is excluded from dashboards and surfaces that already skip stateless trigger-style domains. --- src/common/entity/compute_state_display.ts | 1 + src/common/entity/get_states.ts | 1 + src/common/entity/state_active.ts | 9 ++++++++- src/data/icons.ts | 2 ++ src/data/scene.ts | 1 + src/state-display/state-display.ts | 8 +++++++- 6 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/common/entity/compute_state_display.ts b/src/common/entity/compute_state_display.ts index d0b4f3668737..c6e910397353 100644 --- a/src/common/entity/compute_state_display.ts +++ b/src/common/entity/compute_state_display.ts @@ -258,6 +258,7 @@ const computeStateToPartsFromEntityAttributes = ( "infrared", "input_button", "notify", + "radio_frequency", "scene", "stt", "tag", diff --git a/src/common/entity/get_states.ts b/src/common/entity/get_states.ts index 1a868f3bf6d5..9eefece44e12 100644 --- a/src/common/entity/get_states.ts +++ b/src/common/entity/get_states.ts @@ -54,6 +54,7 @@ export const FIXED_DOMAIN_STATES = { ], person: ["home", "not_home"], plant: ["ok", "problem"], + radio_frequency: [], remote: ["on", "off"], scene: [], schedule: ["on", "off"], diff --git a/src/common/entity/state_active.ts b/src/common/entity/state_active.ts index b19360363d6d..78882bc97144 100644 --- a/src/common/entity/state_active.ts +++ b/src/common/entity/state_active.ts @@ -7,7 +7,14 @@ export function stateActive(stateObj: HassEntity, state?: string): boolean { const compareState = state !== undefined ? state : stateObj?.state; if ( - ["button", "event", "infrared", "input_button", "scene"].includes(domain) + [ + "button", + "event", + "infrared", + "input_button", + "radio_frequency", + "scene", + ].includes(domain) ) { return compareState !== UNAVAILABLE; } diff --git a/src/data/icons.ts b/src/data/icons.ts index 12368de677f9..29f9b3e3d891 100644 --- a/src/data/icons.ts +++ b/src/data/icons.ts @@ -39,6 +39,7 @@ import { mdiMicrophoneMessage, mdiMotionSensor, mdiPalette, + mdiRadioTower, mdiRayVertex, mdiRemote, mdiRobot, @@ -128,6 +129,7 @@ export const FALLBACK_DOMAIN_ICONS = { plant: mdiFlower, power: mdiFlash, proximity: mdiAppleSafari, + radio_frequency: mdiRadioTower, remote: mdiRemote, scene: mdiPalette, schedule: mdiCalendarClock, diff --git a/src/data/scene.ts b/src/data/scene.ts index 4b27899114cd..6d6068cae50c 100644 --- a/src/data/scene.ts +++ b/src/data/scene.ts @@ -16,6 +16,7 @@ export const SCENE_IGNORED_DOMAINS = [ "input_button", "persistent_notification", "person", + "radio_frequency", "scene", "schedule", "script", diff --git a/src/state-display/state-display.ts b/src/state-display/state-display.ts index 1984971acc9f..b5ad5923356e 100644 --- a/src/state-display/state-display.ts +++ b/src/state-display/state-display.ts @@ -14,7 +14,13 @@ import { computeUpdateStateDisplay } from "../data/update"; import "../panels/lovelace/components/hui-timestamp-display"; import type { HomeAssistant } from "../types"; -const TIMESTAMP_STATE_DOMAINS = ["button", "infrared", "input_button", "scene"]; +const TIMESTAMP_STATE_DOMAINS = [ + "button", + "infrared", + "input_button", + "radio_frequency", + "scene", +]; export const STATE_DISPLAY_SPECIAL_CONTENT = [ "remaining_time", From 5c83f082d89c4ce0932701a97885cfd69242ddd5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Apr 2026 10:42:31 +0000 Subject: [PATCH 2/2] Change radio_frequency icon to mdi:video-input-antenna Agent-Logs-Url: https://github.com/home-assistant/frontend/sessions/e1ee30a0-8733-4aed-8627-6a5450d46eca Co-authored-by: balloob <1444314+balloob@users.noreply.github.com> --- src/data/icons.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/icons.ts b/src/data/icons.ts index 29f9b3e3d891..7d3856c03433 100644 --- a/src/data/icons.ts +++ b/src/data/icons.ts @@ -39,7 +39,6 @@ import { mdiMicrophoneMessage, mdiMotionSensor, mdiPalette, - mdiRadioTower, mdiRayVertex, mdiRemote, mdiRobot, @@ -53,6 +52,7 @@ import { mdiThermostat, mdiTimerOutline, mdiToggleSwitch, + mdiVideoInputAntenna, mdiWater, mdiWaterPercent, mdiWeatherPartlyCloudy, @@ -129,7 +129,7 @@ export const FALLBACK_DOMAIN_ICONS = { plant: mdiFlower, power: mdiFlash, proximity: mdiAppleSafari, - radio_frequency: mdiRadioTower, + radio_frequency: mdiVideoInputAntenna, remote: mdiRemote, scene: mdiPalette, schedule: mdiCalendarClock,