Add icon translations to Litterrobot (#111899)

This commit is contained in:
Joost Lekkerkerker 2024-03-01 13:40:37 +01:00 committed by GitHub
parent f0be33fc6a
commit e43c62af1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 46 additions and 17 deletions

View file

@ -52,7 +52,6 @@ BINARY_SENSOR_MAP: dict[type[Robot], tuple[RobotBinarySensorEntityDescription, .
RobotBinarySensorEntityDescription[LitterRobot](
key="sleeping",
translation_key="sleeping",
icon="mdi:sleep",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
is_on_fn=lambda robot: robot.is_sleeping,
@ -60,7 +59,6 @@ BINARY_SENSOR_MAP: dict[type[Robot], tuple[RobotBinarySensorEntityDescription, .
RobotBinarySensorEntityDescription[LitterRobot](
key="sleep_mode",
translation_key="sleep_mode",
icon="mdi:sleep",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
is_on_fn=lambda robot: robot.sleep_mode_enabled,