Add icon translations to Rachio (#112195)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 08:44:30 +01:00 committed by GitHub
parent 982dab3849
commit 2ae90d5eed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,19 @@
{
"entity": {
"switch": {
"standby": {
"default": "mdi:power"
},
"rain_delay": {
"default": "mdi:camera-timer"
}
}
},
"services": {
"set_zone_moisture_percent": "mdi:water-percent",
"start_multiple_zone_schedule": "mdi:play",
"pause_watering": "mdi:pause",
"resume_watering": "mdi:play",
"stop_watering": "mdi:stop"
}
}

View File

@ -198,7 +198,6 @@ class RachioStandbySwitch(RachioSwitch):
_attr_has_entity_name = True _attr_has_entity_name = True
_attr_translation_key = "standby" _attr_translation_key = "standby"
_attr_icon = "mdi:power"
@property @property
def unique_id(self) -> str: def unique_id(self) -> str:
@ -242,7 +241,6 @@ class RachioRainDelay(RachioSwitch):
_attr_has_entity_name = True _attr_has_entity_name = True
_attr_translation_key = "rain_delay" _attr_translation_key = "rain_delay"
_attr_icon = "mdi:camera-timer"
def __init__(self, controller): def __init__(self, controller):
"""Set up a Rachio rain delay switch.""" """Set up a Rachio rain delay switch."""