From c678664d9a3b8670824159b8f4a7ee86454859ee Mon Sep 17 00:00:00 2001 From: Luke Date: Tue, 30 May 2023 12:52:55 -0400 Subject: [PATCH] Add translations to Roborock fan speed (#93801) --- .../components/roborock/strings.json | 22 +++++++++++++++++++ homeassistant/components/roborock/vacuum.py | 1 + 2 files changed, 23 insertions(+) diff --git a/homeassistant/components/roborock/strings.json b/homeassistant/components/roborock/strings.json index 65e09073cb5..f8b8dae38d2 100644 --- a/homeassistant/components/roborock/strings.json +++ b/homeassistant/components/roborock/strings.json @@ -96,6 +96,28 @@ "custom": "Custom" } } + }, + "vacuum": { + "roborock": { + "state_attributes": { + "fan_speed": { + "state": { + "auto": "Auto", + "balanced": "Balanced", + "custom": "Custom", + "gentle": "Gentle", + "off": "Off", + "max": "Max", + "max_plus": "Max plus", + "medium": "Medium", + "quiet": "Quiet", + "silent": "Silent", + "standard": "Standard", + "turbo": "Turbo" + } + } + } + } } } } diff --git a/homeassistant/components/roborock/vacuum.py b/homeassistant/components/roborock/vacuum.py index 666b8488d80..9e486fa54b1 100644 --- a/homeassistant/components/roborock/vacuum.py +++ b/homeassistant/components/roborock/vacuum.py @@ -82,6 +82,7 @@ class RoborockVacuum(RoborockCoordinatedEntity, StateVacuumEntity): | VacuumEntityFeature.STATE | VacuumEntityFeature.START ) + _attr_translation_key = DOMAIN def __init__( self,