mirror of
https://github.com/home-assistant/core.git
synced 2025-11-17 15:00:12 +00:00
Add entity translations to Litterrobot (#95316)
This commit is contained in:
@@ -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(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user