Set entity_category

This commit is contained in:
epenet
2025-08-04 14:42:21 +00:00
parent 2a53bccc47
commit 529cfc65ec
2 changed files with 2 additions and 1 deletions

View File

@@ -320,6 +320,7 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
TuyaBinarySensorEntityDescription( TuyaBinarySensorEntityDescription(
key=DPCode.MASTER_STATE, key=DPCode.MASTER_STATE,
device_class=BinarySensorDeviceClass.PROBLEM, device_class=BinarySensorDeviceClass.PROBLEM,
entity_category=EntityCategory.DIAGNOSTIC,
on_value="alarm", on_value="alarm",
), ),
), ),

View File

@@ -697,7 +697,7 @@
'device_id': <ANY>, 'device_id': <ANY>,
'disabled_by': None, 'disabled_by': None,
'domain': 'binary_sensor', 'domain': 'binary_sensor',
'entity_category': None, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
'entity_id': 'binary_sensor.x5_zigbee_gateway_problem', 'entity_id': 'binary_sensor.x5_zigbee_gateway_problem',
'has_entity_name': True, 'has_entity_name': True,
'hidden_by': None, 'hidden_by': None,