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

@@ -60,14 +60,14 @@ class RobotButtonEntityDescription(ButtonEntityDescription, RequiredKeysMixin[_R
LITTER_ROBOT_BUTTON = RobotButtonEntityDescription[LitterRobot3](
key="reset_waste_drawer",
name="Reset waste drawer",
translation_key="reset_waste_drawer",
icon="mdi:delete-variant",
entity_category=EntityCategory.CONFIG,
press_fn=lambda robot: robot.reset_waste_drawer(),
)
FEEDER_ROBOT_BUTTON = RobotButtonEntityDescription[FeederRobot](
key="give_snack",
name="Give snack",
translation_key="give_snack",
icon="mdi:candy-outline",
press_fn=lambda robot: robot.give_snack(),
)