From 061c38d2a756b4c61b2bec700ba31d8cffc0d131 Mon Sep 17 00:00:00 2001 From: Adam Goode Date: Sat, 6 Dec 2025 01:51:09 -0500 Subject: [PATCH] Make unifi LEDs EntityCategory.CONFIG (#158088) --- homeassistant/components/unifi/light.py | 2 ++ tests/components/unifi/snapshots/test_light.ambr | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/unifi/light.py b/homeassistant/components/unifi/light.py index d719d86cc03..32b66cf9da7 100644 --- a/homeassistant/components/unifi/light.py +++ b/homeassistant/components/unifi/light.py @@ -19,6 +19,7 @@ from homeassistant.components.light import ( LightEntityDescription, LightEntityFeature, ) +from homeassistant.const import EntityCategory from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from homeassistant.util.color import rgb_hex_to_rgb_list @@ -117,6 +118,7 @@ ENTITY_DESCRIPTIONS: tuple[UnifiLightEntityDescription, ...] = ( UnifiLightEntityDescription[Devices, Device]( key="LED control", translation_key="led_control", + entity_category=EntityCategory.CONFIG, allowed_fn=lambda hub, obj_id: True, api_handler_fn=lambda api: api.devices, available_fn=async_device_available_fn, diff --git a/tests/components/unifi/snapshots/test_light.ambr b/tests/components/unifi/snapshots/test_light.ambr index fc9d972f9be..7e5e152dd46 100644 --- a/tests/components/unifi/snapshots/test_light.ambr +++ b/tests/components/unifi/snapshots/test_light.ambr @@ -15,7 +15,7 @@ 'device_id': , 'disabled_by': None, 'domain': 'light', - 'entity_category': None, + 'entity_category': , 'entity_id': 'light.device_with_led_led', 'has_entity_name': True, 'hidden_by': None,