Add entity translations to Litterrobot (#95316)

This commit is contained in:
Robert Hillis
2023-06-27 04:12:02 -04:00
committed by GitHub
parent c3d02d68b7
commit 7add36d847
8 changed files with 86 additions and 20 deletions

View File

@@ -51,7 +51,7 @@ BINARY_SENSOR_MAP: dict[type[Robot], tuple[RobotBinarySensorEntityDescription, .
LitterRobot: (
RobotBinarySensorEntityDescription[LitterRobot](
key="sleeping",
name="Sleeping",
translation_key="sleeping",
icon="mdi:sleep",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
@@ -59,7 +59,7 @@ BINARY_SENSOR_MAP: dict[type[Robot], tuple[RobotBinarySensorEntityDescription, .
),
RobotBinarySensorEntityDescription[LitterRobot](
key="sleep_mode",
name="Sleep mode",
translation_key="sleep_mode",
icon="mdi:sleep",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
@@ -69,7 +69,7 @@ BINARY_SENSOR_MAP: dict[type[Robot], tuple[RobotBinarySensorEntityDescription, .
Robot: (
RobotBinarySensorEntityDescription[Robot](
key="power_status",
name="Power status",
translation_key="power_status",
device_class=BinarySensorDeviceClass.PLUG,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,