Add icon translations to Ridwell (#112210)

This commit is contained in:
Joost Lekkerkerker 2024-03-04 15:36:50 +01:00 committed by GitHub
parent 4cfca55099
commit 35599046ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 2 deletions

View File

@ -49,8 +49,8 @@ async def async_setup_entry(
class RidwellCalendar(RidwellEntity, CalendarEntity):
"""Define a Ridwell calendar."""
_attr_icon = "mdi:delete-empty"
_attr_name = None
_attr_translation_key = "calendar"
def __init__(
self, coordinator: RidwellDataUpdateCoordinator, account: RidwellAccount

View File

@ -0,0 +1,14 @@
{
"entity": {
"calendar": {
"calendar": {
"default": "mdi:delete-empty"
}
},
"switch": {
"opt_in": {
"default": "mdi:calendar-check"
}
}
}
}

View File

@ -19,7 +19,6 @@ from .entity import RidwellEntity
SWITCH_DESCRIPTION = SwitchEntityDescription(
key="opt_in",
translation_key="opt_in",
icon="mdi:calendar-check",
)