Use enums in rdw (#62059)
This commit is contained in:
parent
079b7f217f
commit
5227019d3e
2 changed files with 5 additions and 5 deletions
|
@ -7,7 +7,7 @@ from dataclasses import dataclass
|
|||
from vehicle import Vehicle
|
||||
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_PROBLEM,
|
||||
BinarySensorDeviceClass,
|
||||
BinarySensorEntity,
|
||||
BinarySensorEntityDescription,
|
||||
)
|
||||
|
@ -48,7 +48,7 @@ BINARY_SENSORS: tuple[RDWBinarySensorEntityDescription, ...] = (
|
|||
RDWBinarySensorEntityDescription(
|
||||
key="pending_recall",
|
||||
name="Pending Recall",
|
||||
device_class=DEVICE_CLASS_PROBLEM,
|
||||
device_class=BinarySensorDeviceClass.PROBLEM,
|
||||
is_on_fn=lambda vehicle: vehicle.pending_recall,
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue