mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Assign entity category diagnostics to deCONZ tampering sensors (#58112)
This commit is contained in:
@@ -22,7 +22,7 @@ from homeassistant.components.binary_sensor import (
|
||||
BinarySensorEntity,
|
||||
BinarySensorEntityDescription,
|
||||
)
|
||||
from homeassistant.const import ATTR_TEMPERATURE
|
||||
from homeassistant.const import ATTR_TEMPERATURE, ENTITY_CATEGORY_DIAGNOSTIC
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
|
||||
@@ -169,6 +169,7 @@ class DeconzTampering(DeconzDevice, BinarySensorEntity):
|
||||
|
||||
TYPE = DOMAIN
|
||||
|
||||
_attr_entity_category = ENTITY_CATEGORY_DIAGNOSTIC
|
||||
_attr_device_class = DEVICE_CLASS_TAMPER
|
||||
|
||||
def __init__(self, device, gateway):
|
||||
|
||||
Reference in New Issue
Block a user