mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Set entity_category
This commit is contained in:
@@ -320,6 +320,7 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
|
||||
TuyaBinarySensorEntityDescription(
|
||||
key=DPCode.MASTER_STATE,
|
||||
device_class=BinarySensorDeviceClass.PROBLEM,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
on_value="alarm",
|
||||
),
|
||||
),
|
||||
|
@@ -697,7 +697,7 @@
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'binary_sensor',
|
||||
'entity_category': None,
|
||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
||||
'entity_id': 'binary_sensor.x5_zigbee_gateway_problem',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
|
Reference in New Issue
Block a user