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
3 changed files with 15 additions and 2 deletions
+1 -1
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
@@ -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(
key="opt_in",
translation_key="opt_in",
icon="mdi:calendar-check",
)