mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Aurora ABB add entity category (#61231)
This commit is contained in:
parent
3e78c28a5b
commit
adf63d5116
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user