File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed
homeassistant/components/ecovacs Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1616from homeassistant .helpers .entity_platform import AddConfigEntryEntitiesCallback
1717
1818from . import EcovacsConfigEntry
19- from .const import SUPPORTED_LIFESPANS
19+ from .const import SUPPORTED_LIFESPANS , SUPPORTED_STATION_ACTIONS
2020from .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
Original file line number Diff line number Diff line change 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
2832LEGACY_SUPPORTED_LIFESPANS = (
2933 "main_brush" ,
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments