Skip to content

Commit 061c38d

Browse files
authored
Make unifi LEDs EntityCategory.CONFIG (home-assistant#158088)
1 parent e1720be commit 061c38d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

homeassistant/components/unifi/light.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
LightEntityDescription,
2020
LightEntityFeature,
2121
)
22+
from homeassistant.const import EntityCategory
2223
from homeassistant.core import HomeAssistant, callback
2324
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
2425
from homeassistant.util.color import rgb_hex_to_rgb_list
@@ -117,6 +118,7 @@ class UnifiLightEntityDescription[HandlerT: APIHandler, ApiItemT: ApiItem](
117118
UnifiLightEntityDescription[Devices, Device](
118119
key="LED control",
119120
translation_key="led_control",
121+
entity_category=EntityCategory.CONFIG,
120122
allowed_fn=lambda hub, obj_id: True,
121123
api_handler_fn=lambda api: api.devices,
122124
available_fn=async_device_available_fn,

tests/components/unifi/snapshots/test_light.ambr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'device_id': <ANY>,
1616
'disabled_by': None,
1717
'domain': 'light',
18-
'entity_category': None,
18+
'entity_category': <EntityCategory.CONFIG: 'config'>,
1919
'entity_id': 'light.device_with_led_led',
2020
'has_entity_name': True,
2121
'hidden_by': None,

0 commit comments

Comments
 (0)