Assign entity category diagnostics to deCONZ tampering sensors (#58112)

This commit is contained in:
Robert Svensson
2021-10-20 20:24:11 +02:00
committed by GitHub
parent 2fcce7fd12
commit 333c80a694
2 changed files with 9 additions and 1 deletions

View File

@@ -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):