Make unifi LEDs EntityCategory.CONFIG (#158088)

This commit is contained in:
Adam Goode
2025-12-06 01:51:09 -05:00
committed by GitHub
parent e1720be5a4
commit 061c38d2a7
2 changed files with 3 additions and 1 deletions

View File

@@ -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,

View File

@@ -15,7 +15,7 @@
'device_id': <ANY>,
'disabled_by': None,
'domain': 'light',
'entity_category': None,
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'light.device_with_led_led',
'has_entity_name': True,
'hidden_by': None,