mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Set entity_category
This commit is contained in:
@@ -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",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user