Aurora ABB add entity category (#61231)

This commit is contained in:
Dave T 2021-12-08 21:34:47 +00:00 committed by GitHub
parent 3e78c28a5b
commit adf63d5116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,7 @@ from homeassistant.const import (
TEMP_CELSIUS, TEMP_CELSIUS,
) )
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import EntityCategory
from .aurora_device import AuroraEntity from .aurora_device import AuroraEntity
from .const import DEFAULT_ADDRESS, DOMAIN from .const import DEFAULT_ADDRESS, DOMAIN
@ -42,6 +43,7 @@ SENSOR_TYPES = [
SensorEntityDescription( SensorEntityDescription(
key="temp", key="temp",
device_class=SensorDeviceClass.TEMPERATURE, device_class=SensorDeviceClass.TEMPERATURE,
entity_category=EntityCategory.DIAGNOSTIC,
native_unit_of_measurement=TEMP_CELSIUS, native_unit_of_measurement=TEMP_CELSIUS,
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
name="Temperature", name="Temperature",