mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add icon translations to Yardian (#112362)
This commit is contained in:
parent
f81b1819b0
commit
810dd0d643
12
homeassistant/components/yardian/icons.json
Normal file
12
homeassistant/components/yardian/icons.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"entity": {
|
||||
"switch": {
|
||||
"switch": {
|
||||
"default": "mdi:water"
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"start_irrigation": "mdi:water"
|
||||
}
|
||||
}
|
@ -47,8 +47,8 @@ async def async_setup_entry(
|
||||
class YardianSwitch(CoordinatorEntity[YardianUpdateCoordinator], SwitchEntity):
|
||||
"""Representation of a Yardian switch."""
|
||||
|
||||
_attr_icon = "mdi:water"
|
||||
_attr_has_entity_name = True
|
||||
_attr_translation_key = "switch"
|
||||
|
||||
def __init__(self, coordinator: YardianUpdateCoordinator, zone_id) -> None:
|
||||
"""Initialize a Yardian Switch Device."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user