Use device class ENUM for Tractive tracker state sensor (#97191)
parent
74deb8b011
commit
fc41f3d25b
|
@ -172,11 +172,18 @@ SENSOR_TYPES: tuple[TractiveSensorEntityDescription, ...] = (
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
),
|
),
|
||||||
TractiveSensorEntityDescription(
|
TractiveSensorEntityDescription(
|
||||||
# Currently, only state operational and not_reporting are used
|
|
||||||
# More states are available by polling the data
|
|
||||||
key=ATTR_TRACKER_STATE,
|
key=ATTR_TRACKER_STATE,
|
||||||
translation_key="tracker_state",
|
translation_key="tracker_state",
|
||||||
entity_class=TractiveHardwareSensor,
|
entity_class=TractiveHardwareSensor,
|
||||||
|
icon="mdi:radar",
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
device_class=SensorDeviceClass.ENUM,
|
||||||
|
options=[
|
||||||
|
"not_reporting",
|
||||||
|
"operational",
|
||||||
|
"system_shutdown_user",
|
||||||
|
"system_startup",
|
||||||
|
],
|
||||||
),
|
),
|
||||||
TractiveSensorEntityDescription(
|
TractiveSensorEntityDescription(
|
||||||
key=ATTR_MINUTES_ACTIVE,
|
key=ATTR_MINUTES_ACTIVE,
|
||||||
|
|
Loading…
Reference in New Issue