mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add icon translations to Ridwell (#112210)
This commit is contained in:
parent
4cfca55099
commit
35599046ac
@ -49,8 +49,8 @@ async def async_setup_entry(
|
|||||||
class RidwellCalendar(RidwellEntity, CalendarEntity):
|
class RidwellCalendar(RidwellEntity, CalendarEntity):
|
||||||
"""Define a Ridwell calendar."""
|
"""Define a Ridwell calendar."""
|
||||||
|
|
||||||
_attr_icon = "mdi:delete-empty"
|
|
||||||
_attr_name = None
|
_attr_name = None
|
||||||
|
_attr_translation_key = "calendar"
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, coordinator: RidwellDataUpdateCoordinator, account: RidwellAccount
|
self, coordinator: RidwellDataUpdateCoordinator, account: RidwellAccount
|
||||||
|
14
homeassistant/components/ridwell/icons.json
Normal file
14
homeassistant/components/ridwell/icons.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"calendar": {
|
||||||
|
"calendar": {
|
||||||
|
"default": "mdi:delete-empty"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"switch": {
|
||||||
|
"opt_in": {
|
||||||
|
"default": "mdi:calendar-check"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -19,7 +19,6 @@ from .entity import RidwellEntity
|
|||||||
SWITCH_DESCRIPTION = SwitchEntityDescription(
|
SWITCH_DESCRIPTION = SwitchEntityDescription(
|
||||||
key="opt_in",
|
key="opt_in",
|
||||||
translation_key="opt_in",
|
translation_key="opt_in",
|
||||||
icon="mdi:calendar-check",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user