Skip to content

Commit 6ce9a13

Browse files
authored
Add Roborock attach/detach mop status translations (home-assistant#158184)
1 parent 9cb9efe commit 6ce9a13

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

homeassistant/components/roborock/strings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,13 @@
223223
"name": "Status",
224224
"state": {
225225
"air_drying_stopping": "Air drying stopping",
226+
"attaching_the_mop": "Attaching the mop",
226227
"charger_disconnected": "Charger disconnected",
227228
"charging": "[%key:common::state::charging%]",
228229
"charging_complete": "Charging complete",
229230
"charging_problem": "Charging problem",
230231
"cleaning": "Cleaning",
232+
"detaching_the_mop": "Detaching the mop",
231233
"device_offline": "Device offline",
232234
"docking": "Docking",
233235
"egg_attack": "Cupid mode",

homeassistant/components/roborock/vacuum.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@
3131

3232
STATE_CODE_TO_STATE = {
3333
RoborockStateCode.starting: VacuumActivity.IDLE, # "Starting"
34+
RoborockStateCode.attaching_the_mop: VacuumActivity.DOCKED, # "Attaching the mop"
3435
RoborockStateCode.charger_disconnected: VacuumActivity.IDLE, # "Charger disconnected"
3536
RoborockStateCode.idle: VacuumActivity.IDLE, # "Idle"
3637
RoborockStateCode.remote_control_active: VacuumActivity.CLEANING, # "Remote control active"
3738
RoborockStateCode.cleaning: VacuumActivity.CLEANING, # "Cleaning"
39+
RoborockStateCode.detaching_the_mop: VacuumActivity.DOCKED, # "Detaching the mop"
3840
RoborockStateCode.returning_home: VacuumActivity.RETURNING, # "Returning home"
3941
RoborockStateCode.manual_mode: VacuumActivity.CLEANING, # "Manual mode"
4042
RoborockStateCode.charging: VacuumActivity.DOCKED, # "Charging"

0 commit comments

Comments
 (0)