Add entity translations to Blink (#95138)

This commit is contained in:
Joost Lekkerkerker
2023-06-26 18:29:33 +02:00
committed by GitHub
parent 07936884a3
commit 36ded01264
5 changed files with 23 additions and 10 deletions

View File

@@ -27,17 +27,15 @@ _LOGGER = logging.getLogger(__name__)
BINARY_SENSORS_TYPES: tuple[BinarySensorEntityDescription, ...] = (
BinarySensorEntityDescription(
key=TYPE_BATTERY,
name="Battery",
device_class=BinarySensorDeviceClass.BATTERY,
entity_category=EntityCategory.DIAGNOSTIC,
),
BinarySensorEntityDescription(
key=TYPE_CAMERA_ARMED,
name="Camera Armed",
translation_key="camera_armed",
),
BinarySensorEntityDescription(
key=TYPE_MOTION_DETECTED,
name="Motion Detected",
device_class=BinarySensorDeviceClass.MOTION,
),
)