Skip to content

Commit 39d76a2

Browse files
authored
Fix missing Ecovacs station actions (home-assistant#155237)
1 parent 3e17a97 commit 39d76a2

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

homeassistant/components/ecovacs/button.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
1717

1818
from . import EcovacsConfigEntry
19-
from .const import SUPPORTED_LIFESPANS
19+
from .const import SUPPORTED_LIFESPANS, SUPPORTED_STATION_ACTIONS
2020
from .entity import (
2121
EcovacsCapabilityEntityDescription,
2222
EcovacsDescriptionEntity,
@@ -62,7 +62,7 @@ class EcovacsStationActionButtonEntityDescription(ButtonEntityDescription):
6262
key=f"station_action_{action.name.lower()}",
6363
translation_key=f"station_action_{action.name.lower()}",
6464
)
65-
for action in StationAction
65+
for action in SUPPORTED_STATION_ACTIONS
6666
)
6767

6868

homeassistant/components/ecovacs/const.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
LifeSpan.STATION_FILTER,
2424
)
2525

26-
SUPPORTED_STATION_ACTIONS = (StationAction.EMPTY_DUSTBIN,)
26+
SUPPORTED_STATION_ACTIONS = (
27+
StationAction.CLEAN_BASE,
28+
StationAction.DRY_MOP,
29+
StationAction.EMPTY_DUSTBIN,
30+
)
2731

2832
LEGACY_SUPPORTED_LIFESPANS = (
2933
"main_brush",

homeassistant/components/ecovacs/icons.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
"reset_lifespan_round_mop": {
3737
"default": "mdi:broom"
3838
},
39+
"station_action_clean_base": {
40+
"default": "mdi:home"
41+
},
42+
"station_action_dry_mop": {
43+
"default": "mdi:broom"
44+
},
3945
"station_action_empty_dustbin": {
4046
"default": "mdi:delete-restore"
4147
}

homeassistant/components/ecovacs/strings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@
7070
"reset_lifespan_side_brush": {
7171
"name": "Reset side brush lifespan"
7272
},
73+
"station_action_clean_base": {
74+
"name": "Clean base"
75+
},
76+
"station_action_dry_mop": {
77+
"name": "Dry mop"
78+
},
7379
"station_action_empty_dustbin": {
7480
"name": "Empty dustbin"
7581
}

0 commit comments

Comments
 (0)